Interface XMQDoc
- All Superinterfaces:
XMQNode
An xml document, like xmqDocumentType. A document node has children: the
root element, and, before or after it, doctype (dtd), comments and
processing instructions.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the entity declaration with a given name from the dtd internal subset, or null if not found.Returns the internal doctype, the dtd, or null.Returns the root element, like xmqGetDocumentElement.voidsetIntSubset(XMQDtd dtd) Set the internal doctype.voidSet the root element.Methods inherited from interface XMQNode
addChild, addNextSibling, addPrevSibling, appendRaw, children, content, doc, firstChild, fullName, lastChild, line, name, next, numChildren, parent, prev, replaceWith, setContent, setLine, setName, textContent, type, unlinkModifier and TypeMethodDescriptionAdd a child like xmqAddChild.Insert a sibling after this node, like xmqAddNextSibling (but without text merging).Insert a sibling before this node, like xmqAddPrevSibling (but without text merging).Append a child without merging adjacent text nodes.children()Returns a new list with the children of this node.content()Returns the text content of text like nodes (text, cdata, comment, pi).doc()Returns the document owning this node.Returns the first child.fullName()Returns the full name, ie prefix:name if the node has a namespace with a prefix.Returns the last child.intline()Returns the source line of the node, like xmqGetLineNumber: elements get the line where their start tag ends, text the line where its first chunk was read, comments, processing instructions and cdata sections the line where they end.name()Returns the name of the node.next()Returns the next sibling.intReturns the number of children.parent()Returns the parent node.prev()Returns the previous sibling.voidReplace this node with another node, like xmqReplaceNode.voidsetContent(String content) Set the content of a text like node.voidsetLine(int line) Set the source line of the node.voidSet the name of the node.Returns the string value of the node, like xmqGetString.type()Returns the type of this node.voidunlink()Remove this node from its parent and siblings, like xmqUnlinkNode.
-
Method Details
-
rootElement
XMQElement rootElement()Returns the root element, like xmqGetDocumentElement.- Returns:
- The root element or null.
-
setRootElement
-
intSubset
-
setIntSubset
-
getEntity
Returns the entity declaration with a given name from the dtd internal subset, or null if not found.- Parameters:
name- The name of the entity.- Returns:
- The entity declaration or null.
-