aspose.pdf
Class XmlTextReader
java.lang.Object
aspose.pdf.XmlTextReader
public class XmlTextReader
- extends java.lang.Object
Reader used to read xml text based stream.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeType
public short NodeType
XmlTextReader
public XmlTextReader(java.lang.String xmlfile)
XmlTextReader
public XmlTextReader(TextFileStream instream)
XmlTextReader
public XmlTextReader(MemStream mem)
XmlTextReader
public XmlTextReader(java.io.InputStream input)
XmlTextReader
public XmlTextReader(BinaryFileStream tempStream)
getNodeType
public short getNodeType()
setNodeType
public void setNodeType(short nodeType)
getelementnumber
public int getelementnumber()
setelementnumber
public void setelementnumber(int Value)
getcurnode
public org.w3c.dom.Node getcurnode()
child
public void child(org.w3c.dom.Node cur)
child
public void child(org.w3c.dom.NodeList childNodes)
readRoot
public org.w3c.dom.Element readRoot()
read
public boolean read()
getLength
public int getLength()
getName
public java.lang.String getName()
getValue
public java.lang.String getValue()
getAttributeName
public java.lang.String getAttributeName()
getAttributeValue
public java.lang.String getAttributeValue()
moveToFirstAttribute
public boolean moveToFirstAttribute()
moveToNextAttribute
public boolean moveToNextAttribute()
moveToElement
public boolean moveToElement()
getIsEmptyElement
public boolean getIsEmptyElement()
close
public void close()
- Changes the System.Xml.XmlReader.ReadState to Closed
moveToContent
public aspose.pdf.pdftext.XmlNodeType moveToContent()
- Checks whether the current node is a content (non-white space text, CDATA,
Element, EndElement, EntityReference, or EndEntity) node. If the node is
not a content node, the reader skips ahead to the next content node or end
of file. It skips over nodes of the following type: ProcessingInstruction,
DocumentType, Comment, Whitespace, or SignificantWhitespace.
readElementString
public java.lang.String readElementString()
- Reads a text-only element.
- Returns:
- The text contained in the element that was read. An empty string if the element
is empty (
or ).