ltgOptions.setLoadSubstituteNamespaces(Collections.singletonMap("", "http://www.bea.com/2003/05/xmlbean/ltgfmt")); ltgOptions.setErrorListener(errors); ltgOptions.setLoadLineNumbers();
options.setLoadSubstituteNamespaces(Collections.singletonMap( "http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst" )); options.setLoadSubstituteNamespaces(Collections.singletonMap("http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst")); options.setEntityResolver(entResolver); options.put( XmlOptions.LOAD_LINE_NUMBERS ); options.setEntityResolver(entResolver); options.setLoadSubstituteNamespaces(MAP_COMPATIBILITY_CONFIG_URIS);
public DeployDocument getDeploymentDescriptor() { if (_dd == null) { File ddLocation = new File(_duDirectory, "deploy.xml"); if (!ddLocation.exists()) { ddLocation = new File(_duDirectory, "bpel-deploy.xml"); } try { XmlOptions options = new XmlOptions(); HashMap otherNs = new HashMap(); otherNs.put("http://ode.fivesight.com/schemas/2006/06/27/dd", "http://www.apache.org/ode/schemas/dd/2007/03"); options.setLoadSubstituteNamespaces(otherNs); _dd = DeployDocument.Factory.parse(ddLocation, options); } catch (Exception e) { throw new ContextException("Couldn't read deployment descriptor at location " + ddLocation.getAbsolutePath(), e); } } return _dd; }
public DeployDocument getDeploymentDescriptor() { if (_dd == null) { File ddLocation = new File(_duDirectory, "deploy.xml"); try { XmlOptions options = new XmlOptions(); HashMap otherNs = new HashMap(); otherNs.put("http://ode.fivesight.com/schemas/2006/06/27/dd", "http://www.apache.org/ode/schemas/dd/2007/03"); options.setLoadSubstituteNamespaces(otherNs); _dd = DeployDocument.Factory.parse(ddLocation, options); } catch (Exception e) { throw new ContextException("Couldn't read deployment descriptor at location " + ddLocation.getAbsolutePath(), e); } } return _dd; }
public static XmlOptions namespaceOptions() throws XmlException { XmlOptions xmlOptions = new XmlOptions(); try { Map<String,String> map = getNamespaces(); if (map != null) xmlOptions.setLoadSubstituteNamespaces(map); return xmlOptions; } catch (IOException ex) { throw new XmlException(ex.getMessage(), ex); } }
@SuppressWarnings("unchecked") private SchedulesDocument getSystemSchedulesDocument() { SchedulesDocument sd = null; try { XmlOptions options = new XmlOptions(); HashMap otherNs = new HashMap(); otherNs.put("http://ode.fivesight.com/schemas/2006/06/27/dd", "http://www.apache.org/ode/schemas/schedules/2009/05"); options.setLoadSubstituteNamespaces(otherNs); sd = SchedulesDocument.Factory.parse(schedulesFile, options); } catch (Exception e) { throw new ContextException("Couldn't read schedule descriptor at location " + schedulesFile.getAbsolutePath(), e); } return sd; } }
public static XmlOptions getReverseNamespaceOptions() throws XmlException { XmlOptions xmlOptions = new XmlOptions(); try { Map<String,String> reverseMap = getReverseNamespaces(); if (reverseMap != null) xmlOptions.setLoadSubstituteNamespaces(reverseMap); return xmlOptions; } catch (IOException ex) { throw new XmlException(ex.getMessage(), ex); } }
private XmlOptions createXmlOptions(Collection errors) { Map NAMESPACE_UPDATES = new HashMap(); NAMESPACE_UPDATES.put("http://geronimo.apache.org/xml/ns/directory", "http://geronimo.apache.org/xml/ns/directory-1.0"); XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setErrorListener(errors); options.setLoadSubstituteNamespaces(NAMESPACE_UPDATES); options.setUseDefaultNamespace(); return options; }
public static XmlOptions createXmlOptions(Collection errors) { XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setErrorListener(errors); options.setLoadSubstituteNamespaces(NAMESPACE_UPDATES); return options; }
public static XmlOptions createXmlOptions(Collection errors) { XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setErrorListener(errors); options.setLoadSubstituteNamespaces(NAMESPACE_UPDATES); return options; }
Map<String, String> ns = new HashMap<String, String>(); ns.put("", NAMESPACE); options.setLoadSubstituteNamespaces(ns); options.setDocumentType(TestResultsDocument.TestResults.type);
ltgOptions.setLoadSubstituteNamespaces(Collections.singletonMap("", "http://www.bea.com/2003/05/xmlbean/ltgfmt")); ltgOptions.setErrorListener(errors); ltgOptions.setLoadLineNumbers();
ltgOptions.setLoadSubstituteNamespaces(Collections.singletonMap("", "http://www.bea.com/2003/05/xmlbean/ltgfmt")); ltgOptions.setErrorListener(errors); ltgOptions.setLoadLineNumbers();
XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setLoadSubstituteNamespaces(Collections .singletonMap("http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst")); options.put(XmlOptions.LOAD_LINE_NUMBERS); options.setEntityResolver(entResolver); options.setLoadSubstituteNamespaces(MAP_COMPATIBILITY_CONFIG_URIS);
options.setLoadSubstituteNamespaces(Collections.singletonMap( "http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst" )); options.setLoadSubstituteNamespaces(Collections.singletonMap("http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst")); options.setEntityResolver(entResolver); options.put( XmlOptions.LOAD_LINE_NUMBERS ); options.setEntityResolver(entResolver); options.setLoadSubstituteNamespaces(MAP_COMPATIBILITY_CONFIG_URIS);
options.setLoadSubstituteNamespaces(Collections.singletonMap( "http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst" )); options.setLoadSubstituteNamespaces(Collections.singletonMap("http://schemas.xmlsoap.org/wsdl/", "http://www.apache.org/internal/xmlbeans/wsdlsubst")); options.setEntityResolver(entResolver); options.put( XmlOptions.LOAD_LINE_NUMBERS ); options.setEntityResolver(entResolver); options.setLoadSubstituteNamespaces(MAP_COMPATIBILITY_CONFIG_URIS);