public void setSaveOuter(boolean b) { if (b) super.setSaveOuter(); else remove( SAVE_OUTER ); }
optionsOuter.setSaveOuter(); String appendString = bodyMerge.xmlText(optionsOuter); String addPart = ridSectPr(appendString);
opts.setSaveOuter(); if (pretty) opts.setSavePrettyPrint();
void writeAttributeGroupData(SchemaAttributeGroup grp) { SchemaAttributeGroupImpl impl = (SchemaAttributeGroupImpl)grp; writeQName(impl.getName()); writeString(impl.getTargetNamespace()); writeShort(impl.getChameleonNamespace() != null ? 1 : 0); writeString(impl.getFormDefault()); // new for version 2.22 writeShort(impl.isRedefinition() ? 1 : 0); // new for version 2.15 writeString(impl.getParseObject().xmlText(new XmlOptions().setSaveOuter())); writeAnnotation(impl.getAnnotation()); writeString(impl.getSourceName()); }
public void setSaveOuter(boolean b) { if (b) super.setSaveOuter(); else remove( SAVE_OUTER ); }
public void setSaveOuter(boolean b) { if (b) super.setSaveOuter(); else remove( SAVE_OUTER ); }
void writeModelGroupData(SchemaModelGroup grp) { SchemaModelGroupImpl impl = (SchemaModelGroupImpl)grp; writeQName(impl.getName()); writeString(impl.getTargetNamespace()); writeShort(impl.getChameleonNamespace() != null ? 1 : 0); writeString(impl.getElemFormDefault()); // new for version 2.22 writeString(impl.getAttFormDefault()); // new for version 2.22 writeShort(impl.isRedefinition() ? 1 : 0); // new for version 2.15 writeString(impl.getParseObject().xmlText(new XmlOptions().setSaveOuter())); writeAnnotation(impl.getAnnotation()); writeString(impl.getSourceName()); }
XmlOptions opt = new XmlOptions().setSaveOuter(). setSaveAggressiveNamespaces(); for (int i = 0; i < documentationItems.length; i++)
public static void assign(MessageDAO m, XmlObject o) throws Exception { NodeList nodes = DOMUtils.parse(o.newInputStream(new XmlOptions().setSaveOuter())).getDocumentElement().getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { Node n = nodes.item(i); if (n instanceof Element) { m.setData((Element) n); } } }
public synchronized String getXml() { if (this.xml == null) { this.xml = ((XmlObject) o).xmlText(new XmlOptions().setSaveOuter()); } return xml; }
public static OMElement xmlObjectToOMElement(XmlObject responseXmlObj) throws XMLStreamException { String responseXml; XmlOptions opts = new XmlOptions(); opts.setSaveOuter(); responseXml = responseXmlObj.xmlText(opts); OMElement outgoingMsg = org.apache.airavata.commons.WorkFlowUtils .reader2OMElement(new StringReader(responseXml)); return outgoingMsg; } }
private static POILogger logger = POILogFactory.getLogger(POIXMLDocumentPart.class); public static final XmlOptions DEFAULT_XML_OPTIONS; static { DEFAULT_XML_OPTIONS = new XmlOptions(); DEFAULT_XML_OPTIONS.setSaveOuter(); DEFAULT_XML_OPTIONS.setUseDefaultNamespace(); DEFAULT_XML_OPTIONS.setSaveAggressiveNamespaces(); }
/** * Return this binding as a DOM document fragment. * * @return This binding, as a DOM document fragment. */ public DocumentFragment toXmlDocumentFragment() { XmlOptions options = new XmlOptions(); options.setSaveOuter(); return (DocumentFragment) getBean().newDomNode(options); }
/** * Return this interface operation as a DOM document fragment. The DOM * subtree is a copy; altering it will not affect this service. * * @return This operation, as a DOM document fragment. */ public DocumentFragment toXmlDocumentFragment() { XmlOptions options = new XmlOptions(); options.setSaveOuter(); return (DocumentFragment) getBean().newDomNode(options); }
/** * Return this endpoint as a DOM document fragment. * * @return This endpoint, as a DOM document fragment. */ public DocumentFragment toXmlDocumentFragment() { XmlOptions options = new XmlOptions(); options.setSaveOuter(); return (DocumentFragment) getBean().newDomNode(options); }
/** * Return this service as a DOM document fragment. * * @return This service, as a DOM document fragment. */ public DocumentFragment toXmlDocumentFragment() { XmlOptions options = new XmlOptions(); options.setSaveOuter(); return (DocumentFragment) getBean().newDomNode(options); }
protected static XmlOptions makeXMLOptions() { XmlOptions xmlOptions = new XmlOptions(); xmlOptions.setSavePrettyPrint(); xmlOptions.setSavePrettyPrintIndent(4); xmlOptions.setSaveOuter(); Map<String, String> prefixes = new HashMap<String, String>(); prefixes.put(PLUGINS_NS, "plugins"); xmlOptions.setSaveSuggestedPrefixes(prefixes); xmlOptions.setUseDefaultNamespace(); xmlOptions.setLoadStripWhitespace(); return xmlOptions; }
public XmlOptions getSaveOptions( boolean prettyPrint ) { XmlOptions opts = new XmlOptions(); opts.setSaveOuter() ; // opts.setSaveImplicitNamespaces( ImplicitNamespaces ) ; opts.setSaveNamespacesFirst() ; opts.setSaveAggressiveNamespaces() ; if( prettyPrint ) { opts.setSavePrettyPrint() ; opts.setSavePrettyPrintIndent( prettyPrintIndent ) ; } return opts ; }
void writeAttributeGroupData(SchemaAttributeGroup grp) { SchemaAttributeGroupImpl impl = (SchemaAttributeGroupImpl)grp; writeQName(impl.getName()); writeString(impl.getTargetNamespace()); writeShort(impl.getChameleonNamespace() != null ? 1 : 0); writeString(impl.getFormDefault()); // new for version 2.22 writeShort(impl.isRedefinition() ? 1 : 0); // new for version 2.15 writeString(impl.getParseObject().xmlText(new XmlOptions().setSaveOuter())); writeAnnotation(impl.getAnnotation()); writeString(impl.getSourceName()); }
void writeAttributeGroupData(SchemaAttributeGroup grp) { SchemaAttributeGroupImpl impl = (SchemaAttributeGroupImpl)grp; writeQName(impl.getName()); writeString(impl.getTargetNamespace()); writeShort(impl.getChameleonNamespace() != null ? 1 : 0); writeString(impl.getFormDefault()); // new for version 2.22 writeShort(impl.isRedefinition() ? 1 : 0); // new for version 2.15 writeString(impl.getParseObject().xmlText(new XmlOptions().setSaveOuter())); writeAnnotation(impl.getAnnotation()); writeString(impl.getSourceName()); }