Uses of Class
org.libxmq.imp.xml.XmlNode
Packages that use XmlNode
-
Uses of XmlNode in org.libxmq.imp.xml
Subclasses of XmlNode in org.libxmq.imp.xmlModifier and TypeClassDescriptionclassAn attribute.classA cdata section.classA comment node.classA document.classA document type definition, ie the <!classAn element, attribute list or notation declaration in a dtd.classAn element.classAn entity declaration in a dtd, eg <!classAn entity reference, eg © The reference is kept as a node in the DOM, the entity is never expanded into the document.classA processing instruction, eg <?classA text node.final classA namespace node, created when the xpath namespace axis is traversed.Methods in org.libxmq.imp.xml that return XmlNodeModifier and TypeMethodDescriptionAdd a child like libxml2 xmlAddChild.XmlNode.addNextSibling(XMQNode n) Insert a sibling after this node, like libxml2 xmlAddNextSibling (but without text merging).XmlNode.addPrevSibling(XMQNode n) Insert a sibling before this node, like libxml2 xmlAddPrevSibling (but without text merging).Append a child without merging adjacent text nodes.static XmlNodeThe attribute as a node, the same object in java.static XmlNodeThe element of an attribute.XPathEvalContext.contextNode()The context node of the evaluation calling the function.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 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).XmlNode.firstChild()Returns the first child.The element with the id in the document of node.XmlNode.lastChild()Returns the last child.XmlNode.next()Returns the next sibling.XPathResult.node(int i) A node of a node set.static XmlNodeXmlDomApi.nodeAddChild(XmlNode parent, XmlNode child) Append a child, text is merged into a last text child (xml_node_add_child), then the child is dropped and the last child returned.static XmlNodeXmlDomApi.nodeAddNextSibling(XmlNode node, XmlNode n) Insert n after node.static XmlNodeXmlDomApi.nodeAddPrevSibling(XmlNode node, XmlNode n) Insert n before node.static XmlNodeXmlDomApi.nodeAppendChild(XmlNode parent, XmlNode child) Append a child without merging text (xml_node_append_child), the child is unlinked first.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 XmlNodeXmlDomApi.nodeFirstChild(XmlNode n) The first child.static XmlNodeXmlDomApi.nodeLastChild(XmlNode n) The last child.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.nodeNewNamespaceNode(XmlNode element, String prefix, String href, int index) An xpath namespace node of element, not linked into the element.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 XmlNodeThe next sibling (for an attribute the next attribute).static XmlNodeXmlDomApi.nodeParent(XmlNode n) The parent (the owner element of an attribute or namespace node).static XmlNodeThe previous sibling (for an attribute the previous attribute).static XmlNodeXmlDomApi.nodeReplace(XmlNode node, XmlNode n) Replace node with n.XmlNode.parent()Returns the parent node.XmlNode.prev()Returns the previous sibling.Methods in org.libxmq.imp.xml that return types with arguments of type XmlNodeModifier and TypeMethodDescriptionXPathResult.nodes()The nodes of a node set, the list may be changed by the caller.XPath.selectNodes(XmlNode context) Select the nodes of a node set expression.XPath.selectNodes(XmlNode context, Map<String, String> namespaces) Select the nodes of a node set expression.Methods in org.libxmq.imp.xml with parameters of type XmlNodeModifier and TypeMethodDescriptionvoidAdd a node to a node set.static voidXmlDomApi.domSetRootElement(XmlDocument dom, XmlNode root) Replace the root element (or add it).static StringXmlDomApi.dtdPublicId(XmlNode dtd) The public id of a dtd.static StringXmlDomApi.dtdSystemId(XmlNode dtd) The system id of a dtd.static StringXmlDomApi.entityDeclSystemId(XmlNode decl) The system id of an entity declaration.Evaluate a compiled expression.Evaluate the expression with a fresh context, like xml_xpath_eval.booleanXPath.evaluateBoolean(XmlNode context) Evaluate as a boolean, like xpath boolean().booleanXPath.evaluateBoolean(XmlNode context, Map<String, String> namespaces) Evaluate as a boolean, like xpath boolean().doubleXPath.evaluateNumber(XmlNode context) Evaluate as a number, like xpath number().doubleXPath.evaluateNumber(XmlNode context, Map<String, String> namespaces) Evaluate as a number, like xpath number().XPath.evaluateString(XmlNode context) Evaluate as a string, like xpath string().XPath.evaluateString(XmlNode context, Map<String, String> namespaces) Evaluate as a string, like xpath string().voidForget the indexes of the tree with this root, before it is changed.The element with the id in the document of node.static XmlNodeXmlDomApi.nodeAddChild(XmlNode parent, XmlNode child) Append a child, text is merged into a last text child (xml_node_add_child), then the child is dropped and the last child returned.static XmlNodeXmlDomApi.nodeAddNextSibling(XmlNode node, XmlNode n) Insert n after node.static XmlNodeXmlDomApi.nodeAddPrevSibling(XmlNode node, XmlNode n) Insert n before node.static XmlAttrXmlDomApi.nodeAppendAttr(XmlNode e, String name, XmlNs ns, String value) Append an attribute (without checking for an existing one).static XmlNodeXmlDomApi.nodeAppendChild(XmlNode parent, XmlNode child) Append a child without merging text (xml_node_append_child), the child is unlinked first.static voidXmlDomApi.nodeAppendContent(XmlNode n, String content) Append to the content of a text like node.static booleanXmlDomApi.nodeApplyXmqns(XmlNode element, int action, String puri) Set the namespace of an element added to the dom, as the C xmqAddElement does with an XMQNS (xml_node_apply_xmqns).static XmlAttrXmlDomApi.nodeAsAttr(XmlNode n) The node as an attribute.The attributes of an element (the live list, copy it to change attributes while iterating).static intXmlDomApi.nodeCompareOrder(XmlNode a, XmlNode b) Compare two nodes in document order (xml_node_compare_order): -1, 0 or 1.static StringXmlDomApi.nodeContent(XmlNode n) The content of text, cdata, comments, pis (the data) and namespace nodes (the uri), null for other nodes.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 XmlDocumentThe dom of a node.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 XmlAttrXmlDomApi.nodeFirstAttr(XmlNode e) The first attribute.static XmlNodeXmlDomApi.nodeFirstChild(XmlNode n) The first child.static voidUnlink a node (the garbage collector frees it).static XmlAttrXmlDomApi.nodeGetAttr(XmlNode e, String name, String ns_uri) The attribute with this name and namespace uri (null or "" for none).static intThe kind of a node, the C XmlNodeKind values.static XmlNodeXmlDomApi.nodeLastChild(XmlNode n) The last child.static intThe source line.static XmlAttrXmlDomApi.nodeMoveAttr(XmlNode e, XmlAttr a) Move an attribute to element, an attribute with the same name and namespace is replaced (xml_node_move_attr).static StringThe name: local name of elements and attributes, the target of a pi, the entity name of a reference, the prefix of a namespace node, null for text ("textnoenc" for text written without escaping), comments and documents.static XmlNodeXmlDomApi.nodeNewNamespaceNode(XmlNode element, String prefix, String href, int index) An xpath namespace node of element, not linked into the element.static XmlNodeThe next sibling (for an attribute the next attribute).static XmlNsThe namespace of an element or attribute.XmlDomApi.nodeNsDecls(XmlNode e) The namespace declarations of an element (the live list, copy it to change it while iterating).static StringXmlDomApi.nodeNsPrefix(XmlNode n) The prefix of the namespace of the node.static StringThe namespace uri of the node, null if none (or "").static intXmlDomApi.nodeNumChildren(XmlNode n) The number of children.static XmlNodeXmlDomApi.nodeParent(XmlNode n) The parent (the owner element of an attribute or namespace node).static XmlNodeThe previous sibling (for an attribute the previous attribute).static voidXmlDomApi.nodeReconcileNs(XmlNode node) Make every namespace used in the subtree of node declared in scope (xml_node_reconcile_ns).static booleanXmlDomApi.nodeRemoveAttr(XmlNode e, String name, String ns_uri) Remove the attribute with this name and namespace uri.static XmlNodeXmlDomApi.nodeReplace(XmlNode node, XmlNode n) Replace node with n.static XmlAttrXmlDomApi.nodeSetAttr(XmlNode e, String name, XmlNs ns, String value) Set an attribute, replacing the value (and namespace) of an existing one.static voidXmlDomApi.nodeSetContent(XmlNode n, String content) Set the content, for elements and attributes the children are replaced with one text node (none for "").static voidXmlDomApi.nodeSetLine(XmlNode n, int line) Set the source line.static voidXmlDomApi.nodeSetName(XmlNode n, String name) Set the name.static voidSet the namespace of an element or attribute.static voidXmlDomApi.nodeSetUserData(XmlNode n, Object data) Set the user data.static StringXmlDomApi.nodeStringValue(XmlNode n) The string value: text content of elements, attributes and documents, the character of a character reference (other entity references contribute nothing).static voidXmlDomApi.nodeUnlink(XmlNode n) Unlink a node from its parent (an attribute from its element).static ObjectXmlDomApi.nodeUserData(XmlNode n) The user data.static XmlNsDeclare a namespace on element, null if the prefix is already declared there (xml_ns_declare).static XmlNsXmlDomApi.nsLookupHref(XmlNode node, String href) Find a declaration of href in scope of node whose prefix is not shadowed (xmlSearchNsByHref).static XmlNsXmlDomApi.nsLookupPrefix(XmlNode node, String prefix) Find the declaration of prefix in scope of node (xmlSearchNs), the xml prefix is always declared.static voidXmlDomApi.nsMoveDeclLast(XmlNode e, XmlNs ns) Move the declaration ns last among the declarations of element.static voidXmlDomApi.nsMoveDeclTo(XmlNode from, XmlNs ns, XmlNode to) Move the declaration ns from element from to the front of the declarations of to.static voidXmlDomApi.nsRemoveDecl(XmlNode e, XmlNs ns, XmlNs replacement) Remove the declaration ns from element, the nodes of the subtree using it use replacement instead (xml_ns_remove_decl).static intXmlPattern.patternMatch(XmlPattern comp, XmlNode node) Port of xmlPatternMatch.XPath.selectNodes(XmlNode context) Select the nodes of a node set expression.XPath.selectNodes(XmlNode context, Map<String, String> namespaces) Select the nodes of a node set expression. -
Uses of XmlNode in org.libxmq.imp.xml.xsd10
Methods in org.libxmq.imp.xml.xsd10 that return XmlNodeModifier and TypeMethodDescriptionstatic XmlNodePort of xml_xsd10_ids_lookup.static XmlNodeXsd10Types.idsRefAttr(Xsd10Ids ids, long i) Port of xml_xsd10_ids_ref_attr.Xsd10Error.node()The node.Methods in org.libxmq.imp.xml.xsd10 with parameters of type XmlNodeModifier and TypeMethodDescriptionstatic intPort of xmlAddIDSafe (xmlAddIDInternal).static voidPort of xmlAddRef (the list of references of the document).static intXsd10Types.idsAttrType(Xsd10Ids ids, XmlNode attr) Port of xml_xsd10_ids_attr_type.static voidXsd10Types.idsSetAttrType(Xsd10Ids ids, XmlNode attr, int atype) Port of xml_xsd10_ids_set_attr_type.static intXsd10Valid.validateOneElement(Xsd10ValidCtxt ctxt, XmlNode elem) Port of xmlSchemaValidateOneElement.static intXsd10Types.valPredefTypeNode(Xsd10Type type, String value, Xsd10Val[] val, XmlNode node) Port of xmlSchemaValPredefTypeNode.static intXsd10Types.valPredefTypeNodeIds(Xsd10Type type, String value, Xsd10Val[] val, XmlNode node, Xsd10Ids ids) Port of xml_xsd10_val_predef_type_node_ids (xmlSchemaValPredefTypeNode with an ID table).static intXsd10Types.valPredefTypeNodeNoNorm(Xsd10Type type, String value, Xsd10Val[] val, XmlNode node) Port of xmlSchemaValPredefTypeNodeNoNorm: this one does not apply any normalization to the value.static intXsd10Types.valPredefTypeNodeNoNormIds(Xsd10Type type, String value, Xsd10Val[] val, XmlNode node, Xsd10Ids ids) Port of xml_xsd10_val_predef_type_node_no_norm_ids.