aspose.pdf
Class XMLDocument

java.lang.Object
  extended by aspose.pdf.XMLDocument

public class XMLDocument
extends java.lang.Object

Represents a XML Document.


Constructor Summary
XMLDocument()
          Constructs a XMLDocument instance .
 
Method Summary
 java.lang.String getfilepath()
          Gets the xml file path .
 XmlTextReader getXmlTextReader()
           
 void load(BasicStream xmlStream)
          Loads a exist xml document .
 void load(java.io.InputStream xmlStream)
           
 void load(java.lang.String path)
          Loads a exist xml document .
 void load(TextFileStream fs)
          Loads a exist xml document .
 void save(MemStream ms)
          Saves the content to a MemStream object
 void setfilepath(java.lang.String path)
          Sets the file path
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocument

public XMLDocument()
Constructs a XMLDocument instance .

Method Detail

getfilepath

public java.lang.String getfilepath()
Gets the xml file path .

Returns:
the result path .

setfilepath

public void setfilepath(java.lang.String path)
Sets the file path

Parameters:
path - the path string

load

public void load(java.lang.String path)
Loads a exist xml document .

Parameters:
path - the file path of the exist docment.

load

public void load(TextFileStream fs)
Loads a exist xml document .

Parameters:
fs - The file stream of the exist docment.

load

public void load(BasicStream xmlStream)
Loads a exist xml document .

Parameters:
xmlStream - the input stream of the exist docment.

load

public void load(java.io.InputStream xmlStream)

getXmlTextReader

public XmlTextReader getXmlTextReader()

save

public void save(MemStream ms)
Saves the content to a MemStream object

Parameters:
ms - the target stream object