/** * Uses the current DocumentBuilderFactory to converts a String * representation of XML into a Document. * * @param xml XML serialized as a String * @return Document */ public static Document stringToDocument(String xml) { return stringToDocument(xml, true, false, false); }
/** * Uses the current DocumentBuilderFactory to converts a String * representation of XML into a Document. * * @param xml XML serialized as a String * @return Document */ public static Document stringToDocument(String xml) { return stringToDocument(xml, true); }
/** * Uses the current DocumentBuilderFactory to converts a String * representation of XML into a Document. * * @param xml XML serialized as a String * @return Document */ public static Document stringToDocument(String xml) { return stringToDocument(xml, true, false, false); }
protected Object stringToDocument(String xml) { // FIXME: Temporary workaround for bug 194815 if (xml != null && xml.indexOf('<') == -1) return xml; return XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces)); }
protected Object stringToDocument(String xml) { // FIXME: Temporary workaround for bug 194815 if (xml != null && xml.indexOf('<') == -1) return xml; // Validation performed in XMLUtil#stringToDocument. return XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces), context.allowXmlDoctypeDeclaration, context.allowXmlExternalEntityExpansion); }
protected Object stringToDocument(String xml) { // FIXME: Temporary workaround for bug 194815 if (xml != null && xml.indexOf('<') == -1) return xml; // Validation performed in XMLUtil#stringToDocument. return XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces), context.allowXmlDoctypeDeclaration, context.allowXmlExternalEntityExpansion); }
public void end_xml() { String xml = text.toString(); xml = unescapeCloseCDATA(xml); Object value = XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces)); setValue(value); }
/** * End process of XML. * */ public void end_xml() { String xml = text.toString(); xml = unescapeCloseCDATA(xml); // Validation performed in XMLUtil#stringToDocument. Object value = XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces), context.allowXmlDoctypeDeclaration, context.allowXmlExternalEntityExpansion); setValue(value); }
/** * End process of XML. * */ public void end_xml() { String xml = text.toString(); xml = unescapeCloseCDATA(xml); // Validation performed in XMLUtil#stringToDocument. Object value = XMLUtil.stringToDocument(xml, !(context.legacyXMLNamespaces), context.allowXmlDoctypeDeclaration, context.allowXmlExternalEntityExpansion); setValue(value); }