Use to represent a Document or Document Fragment, in the XML DOM sense.
More compact than traditional DOM, since it uses many fewer objects.
getId
public int getId()
Get/create a new unique number.
nextPos
public int nextPos(int position)
Return the next position following the argument.
The new position has the isAfter property.
The argument is implicitly released (as in releasePos).
Returns 0 if we are already at end of file.
- nextPos in interface TreeList
posFirstChild
public int posFirstChild(int ipos)
posHasAttributes
public boolean posHasAttributes(int ipos)
posIsDefaultNamespace
public boolean posIsDefaultNamespace(int ipos,
String namespaceURI)
posLocalName
public String posLocalName(int ipos)
posLookupNamespaceURI
public String posLookupNamespaceURI(int ipos,
String prefix)
posLookupPrefix
public String posLookupPrefix(int ipos,
String namespaceURI)
posNamespaceURI
public String posNamespaceURI(int ipos)
posPrefix
public String posPrefix(int ipos)
posTarget
public String posTarget(int ipos)
Get the target of a process-instruction.
typedValue
public Object typedValue(int ipos)
Return the type-value of the node at the specified position.