public final class XmlText extends TextResourceBase
Represents one textual resource, which is a XML.
Disposed
Constructor and Description |
---|
XmlText(String name,
com.aspose.ms.System.IO.Stream binaryContent,
com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new XML resource from specified byte stream and encoding
|
XmlText(String name,
String textualContent,
com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new XML resource from specified textual content with encoding
|
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Xml.XmlDocument |
getParsedDocument()
Returns an "XmlDocument" from this XML resource
|
TextType |
getType()
Returns TextType.Xml
|
dispose, equals, getByteContent, getByteContentInternal, getEncoding, getEncodingInternal, getFilenameWithExtension, getName, getTextContent, isDisposed, save
public XmlText(String name, com.aspose.ms.System.IO.Stream binaryContent, com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new XML resource from specified byte stream and encoding
name
- Mandatory name of the resource, that serves as its unique
identifier. Usually is a file name.binaryContent
- Binary content of a resource as a byte stream.
Cannot be NULL, disposed, should be readable and seekable.originalEncoding
- Original encoding of the resource, cannot be NULL
or emptypublic XmlText(String name, String textualContent, com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new XML resource from specified textual content with encoding
name
- Mandatory name of the resource, that serves as its unique
identifier. Usually is a file name.textualContent
- Textual content of the resource, cannot be NULL or
emptyoriginalEncoding
- Original encoding of the resource, cannot be NULL
or emptypublic final com.aspose.ms.System.Xml.XmlDocument getParsedDocument()
Returns an "XmlDocument" from this XML resource
public TextType getType()
Returns TextType.Xml
getType
in interface IHtmlResource
getType
in class TextResourceBase