Uses of Class
org.libxmq.imp.xml.XmlDocument
Packages that use XmlDocument
Package
Description
-
Uses of XmlDocument in org.libxmq.imp
Methods in org.libxmq.imp that return XmlDocumentModifier and TypeMethodDescriptionXMQParseIntoDOM.doc()Returns the parsed document.static XmlDocumentParse the input and return the ixml parse tree.Methods in org.libxmq.imp with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic ValidateValidate.compile(XmlDocument src, Validate.MessageCallback callback, Object user_data) Compile a schema (xmqCompileXsd).XMQParseIntoDOM.setDoc(XmlDocument doc) Use an existing document to parse into.JsonPrinter.toJson(XmlDocument doc, OutputSettings os, boolean final_newline) Print the document as json, like xmq_print_json.intValidate.validate(XmlDocument doc) Validate a document (xmqValidate). -
Uses of XmlDocument in org.libxmq.imp.ixml
Methods in org.libxmq.imp.ixml that return XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentAnalyze a grammar and test its predictive parser against the whole input.static XmlDocumentIXMLAnalyzer.failureDocument(byte[] buf, int begin, int stop, int failed_at, String error, List<EarleyParser.Expected> expected) The failure document of a rejected input, like failureDocument for a String, but the input is UTF-8 bytes, only the code points up to the failure and around it are decoded.static XmlDocumentIXMLAnalyzer.failureDocument(String input, int failed_at, String error, List<EarleyParser.Expected> expected) The failure document of a rejected input, like in the C version: ixml(ixml:state=failed){info=... line=... column=... pos=...}static XmlDocumentParse the input with the LL(*) parser of the grammar and return the ixml parse tree.IXMLAnalyzer.parseInput(String input) Parse an input with a parser from compileParser.IXMLAnalyzer.parseInputOrFailure(String input, boolean silent) Parse an input with a parser from compileParser.Methods in org.libxmq.imp.ixml with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic booleanIXMLAnalyzer.isFailure(XmlDocument d) Returns true if the document is a failure document from parseInputOrFailure. -
Uses of XmlDocument in org.libxmq.imp.ixml.earley
Methods in org.libxmq.imp.ixml.earley that return XmlDocumentModifier and TypeMethodDescriptionEarley.Result.doc()Returns the value of thedocrecord component.static XmlDocumentEarleyTrace.toXml(Grammar grammar, Chart chart, List<TreeBuilder.Step> tree_steps) The trace as a document, the same as the C version records (xmq --traceixml=file):static XmlDocumentSerialize the tree of the start rule.Constructors in org.libxmq.imp.ixml.earley with parameters of type XmlDocumentModifierConstructorDescriptionResult(XmlDocument doc, String error, int position, Grammar grammar, Chart chart, Tree tree, List<TreeBuilder.Step> steps, List<EarleyParser.Expected> expected) Creates an instance of aResultrecord class. -
Uses of XmlDocument in org.libxmq.imp.xml
Methods in org.libxmq.imp.xml that return XmlDocumentModifier and TypeMethodDescriptionXmlNode.doc()Returns the document owning this node.static XmlDocumentXmlDomApi.domNew()A new empty document (xml_dom_new).static XmlDocumentThe dom of a node.static XmlDocumentHtmlParser.parse(byte[] content, boolean noblanks) Parse html content (UTF-8 bytes, invalid sequences become U+FFFD) into a document.static XmlDocumentParse html content into a document, like libxml2 htmlReadMemory with the options HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | HTML_PARSE_NONET.static XmlDocumentParse xml bytes into a document, the bytes are UTF-8, UTF-16 (bom or "<?"static XmlDocumentParse xml bytes into a document, the warnings and recoverable errors (eg namespace errors) go to messages instead of stderr, like the message callback of the C parser.static XmlDocumentParse xml into a document.Methods in org.libxmq.imp.xml with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic StringHtmlSave.docContentDump(XmlDocument doc, boolean format) Dump a whole html document, like libxml2 htmlDocContentDumpFormatOutput.static StringXmlSave.docDump(XmlDocument doc, String encoding) Dump a document like libxml2 xmlDocDumpMemoryEnc(doc, ..., encoding), ie without formatting.static StringXmlSave.docDump(XmlDocument doc, String encoding, boolean format) Dump a document like libxml2 xmlDocDumpFormatMemoryEnc(doc, ..., encoding, format).static XmlNodeXmlDomApi.domDocument(XmlDocument dom) The document node of a dom, the same object in java.static XmlNodeXmlDomApi.domDtd(XmlDocument dom) The internal subset.static StringXmlDomApi.domEncoding(XmlDocument dom) The encoding of the xml declaration.static XmlNodeXmlDomApi.domGetEntity(XmlDocument dom, String name) A general entity declared in the internal subset.static XmlNodeXmlDomApi.domRootElement(XmlDocument dom) The root element.static XmlNodeXmlDomApi.domSetDtd(XmlDocument dom, String name, String public_id, String system_id) Replace the dtd with a new one without declarations, before the root element (xml_dom_set_dtd).static voidXmlDomApi.domSetEncoding(XmlDocument dom, String e) Set the encoding.static voidXmlDomApi.domSetRootElement(XmlDocument dom, XmlNode root) Replace the root element (or add it).static voidXmlDomApi.domSetStandalone(XmlDocument dom, int s) Set the standalone flag.static voidXmlDomApi.domSetUrl(XmlDocument dom, String url) Set the url.static voidXmlDomApi.domSetVersion(XmlDocument dom, String v) Set the version.static intXmlDomApi.domStandalone(XmlDocument dom) The standalone flag: -1 not given, 0 no, 1 yes.static StringXmlDomApi.domUrl(XmlDocument dom) Where the document was loaded from (libxml2 doc->URL).static StringXmlDomApi.domVersion(XmlDocument dom) The version of the xml declaration.static voidXmlEntityExpander.expand(XmlDocument doc, String only, long input_size, int options) Expand the entities of a document.static voidXmlEntityExpander.expand(XmlDocument doc, String only, long input_size, int options, String source) Expand the entities of a document, the messages name the source.static voidXmlTrim.fixupCommentsAfterReadin(XmlDocument doc) Remove the dle escapes from comments, like the C function xmq_fixup_comments_after_readin.static voidXmlTrim.fixupHtmlBeforeWriteout(XmlDocument doc) Prepare a document for writing as xml or html, like the C function xmq_fixup_html_before_writeout: comments containing -- are escaped with the dle char, cdata sections become text and entity references inside style and script elements are replaced by text.static XmlNodeXmlDomApi.nodeCopy(XmlDocument dom, XmlNode node, boolean deep) Copy a node (not a document) into dom, deep with the children, the namespaces used are the copies of the declarations copied with it or the original ones (xml_node_copy).static StringHtmlSave.nodeDump(XmlDocument doc, XmlNode node, boolean format) Dump a node and its children, like libxml2 htmlNodeDumpFormatOutput.static StringXmlSave.nodeDump(XmlDocument doc, XmlNode node, int level, boolean format) Dump a node like libxml2 xmlNodeDump(buf, doc, node, level, format).static voidHtmlSave.nodeDumpFormatOutput(StringBuilder out, XmlDocument doc, XmlNode cur, boolean format) Dump a node and its children into a string builder, port of htmlNodeDumpInternal (libxml2 2.16, encoding NULL so no meta charset handling), like xml_html_node in C.static voidXmlSave.nodeDumpOutput(StringBuilder out, XmlDocument doc, XmlNode node, int level, boolean format, String encoding) Serialize a node like libxml2 xmlNodeDumpOutput: in the XHTML mode if the dtd of doc is an XHTML 1.0 dtd.static XmlNodeXmlDomApi.nodeNewCdata(XmlDocument dom, String text) A new cdata section.static XmlNodeXmlDomApi.nodeNewComment(XmlDocument dom, String text) A new comment.static XmlNodeXmlDomApi.nodeNewElement(XmlDocument dom, String name, XmlNs ns) A new element (xml_node_new_element).static XmlNodeXmlDomApi.nodeNewEntityRef(XmlDocument dom, String name) A new entity reference.static XmlNodeXmlDomApi.nodeNewPi(XmlDocument dom, String target, String data) A new processing instruction.static XmlNodeXmlDomApi.nodeNewText(XmlDocument dom, String text) A new text node.static intHtmlSave.setMetaEncoding(XmlDocument doc, String encoding) Create or update the meta tags with the encoding in the head (libxml2 htmlSetMetaEncoding).static voidXmlTrim.trimWhitespace(XmlDocument doc) Trim the whitespace of all text and comment nodes in the document, like the C function xmqTrimWhitespace. -
Uses of XmlDocument in org.libxmq.imp.xml.libxslt1
Methods in org.libxmq.imp.xml.libxslt1 that return XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentTransform.applyStylesheet(Stylesheet style, XmlDocument doc, String[] params, int[] output_type) Apply the stylesheet to the document (libxslt xsltApplyStylesheet, port of xsltApplyStylesheetInternal).static XmlDocumentTransform.copyStylesheetDoc(Stylesheet style) A copy of the (compiled) stylesheet document, like the xmlCopyDoc loaders give for document('').static XmlDocumentXslt.defaultLoader(Settings s, String uri, int type) The default loader (xml_libxslt1_default_loader): read the file (a file: url or a path) and parse it as xml, with entities expanded like libxslt XSLT_PARSE_OPTIONS.Load a document.Methods in org.libxmq.imp.xml.libxslt1 with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentTransform.applyStylesheet(Stylesheet style, XmlDocument doc, String[] params, int[] output_type) Apply the stylesheet to the document (libxslt xsltApplyStylesheet, port of xsltApplyStylesheetInternal).static StylesheetXslt.compile(XmlDocument doc, Settings settings) Compile a stylesheet (libxslt xsltParseStylesheetDoc, xml_libxslt1_compile).static byte[]Transform.saveResultToString(XmlDocument result, Stylesheet style, int output_type) Serialize a result like libxslt xsltSaveResultToString: the output method, encoding, indentation, xml declaration and doctype of the stylesheet (xml_libxslt1_save_result_to_string).static StylesheetXslt.stylesheetNewEmpty(XmlDocument style_dom, Settings settings) An empty stylesheet whose document is style_dom (not owned), patterns can be compiled with namespaces from its elements (xml_libxslt1_stylesheet_new_empty).static TransformCtxTransform.transformNew(Stylesheet style, XmlDocument source) A transformation context for the source document (not owned). -
Uses of XmlDocument in org.libxmq.imp.xml.xsd10
Methods in org.libxmq.imp.xml.xsd10 that return XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentXsd10Schemas.defaultLoader(Object user_data, String uri) Port of xml_xsd10_default_loader: read and parse the file uri, problems go to stderr.Load a schema document.Methods in org.libxmq.imp.xml.xsd10 with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic Xsd10ParserCtxtXsd10Schemas.newDocParserCtxt(XmlDocument doc) Port of xmlSchemaNewDocParserCtxt: create an XML Schemas parse context for that document.static intXsd10Valid.validateDoc(Xsd10ValidCtxt ctxt, XmlDocument doc) Port of xmlSchemaValidateDoc.