Class XmlAttr
java.lang.Object
org.libxmq.imp.xml.XmlNode
org.libxmq.imp.xml.XmlAttr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the element owning this attribute.fullName()Returns the full name, ie prefix:name if the node has a namespace with a prefix.ns()Returns the namespace of the attribute.rawValue()Returns the value of the attribute where entity references are written as &name; ie the raw value as it would be written in xmq.voidSet the namespace of the attribute.voidReplace the value of the attribute with a text value.type()Returns the type of this node.value()Returns the value of the attribute.Methods inherited from class XmlNode
addChild, addNextSibling, addPrevSibling, appendRaw, children, content, doc, firstChild, 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.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.