Class XmlEntityRef
java.lang.Object
org.libxmq.imp.xml.XmlNode
org.libxmq.imp.xml.XmlEntityRef
- All Implemented Interfaces:
XMQNode
An entity reference, eg © The reference is kept as a node in the
DOM, the entity is never expanded into the document.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class XmlNode
addChild, addNextSibling, addPrevSibling, appendRaw, children, content, doc, firstChild, fullName, hasChildren, lastChild, line, name, next, numChildren, parent, prev, replaceWith, setContent, setLine, setName, textContent, toString, unlinkModifier and TypeMethodDescriptionAdd a child like libxml2 xmlAddChild.Insert a sibling after this node, like libxml2 xmlAddNextSibling (but without text merging).Insert a sibling before this node, like libxml2 xmlAddPrevSibling (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.booleanReturns true if this node has children.Returns the last child.intline()Returns the source line of the node, like libxml2 xmlGetLineNo: 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.intCount the children.parent()Returns the parent node.prev()Returns the previous sibling.voidReplace this node with another node, like libxml2 xmlReplaceNode.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 libxml2 xmlNodeGetContent.toString()voidunlink()Remove this node from its parent and siblings, like libxml2 xmlUnlinkNode.
-
Constructor Details
-
XmlEntityRef
Create an entity reference.- Parameters:
name- The entity name, eg copy for ©
-
-
Method Details
-
type
-
entity
Find the declaration of the referenced entity in the document dtd.- Returns:
- The declaration or null.
-