Package com.nfbsoftware.xml
Interface IXmlDocument
- All Superinterfaces:
IXmlElement,Serializable
- All Known Implementing Classes:
XmlDocument
- Author:
- Brendan Clemenzi
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the namespace of the current node.Method getRootElement returns the root element for the xml document.voidisValid()Determine if the xml document in questionvoidThis method replaces the content of the current root node with that of the input file.voidThis method replaces the content of the current root node with that of the input file.voidload(InputStream in) This method replaces the content of the current root node with that of the InputStream.voidload(InputStream in, String encoding) This method replaces the content of the current root node with that of the InputStream.voidThis method replaces the content of the current root node with that of the Reader.voidThis method replaces the content of the current root node with that of the input string.Methods inherited from interface com.nfbsoftware.xml.IXmlElement
addChild, addToChild, clone, createChild, createChild, createChildren, getAttribute, getAttributeNames, getAttributeValues, getCDATASection, getChild, getChild, getChildAttribute, getChildCount, getChildren, getChildrenByName, getChildValue, getDocument, getName, getRootNode, getValue, removeAttribute, removeChild, removeChild, removeChildAttribute, removeChildrenWithXpath, removeChildWithXpath, replaceAllChildren, replaceChild, replaceChild, selectChild, selectChildren, setAttribute, setCDATASection, setValue, write, write
-
Method Details
-
getNameSpace
This method returns the namespace of the current node.- Returns:
- The namespace of the current node.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the input file.- Parameters:
file- points to the XML file- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the input file.- Parameters:
file- points to the XML fileencoding- The name of the supported character encoding- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the Reader.- Parameters:
reader- A reader containing an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the InputStream.- Parameters:
in- A stream containing an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the InputStream.- Parameters:
in- A stream containing an XML document.encoding- The name of the supported character encoding- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the input string.- Parameters:
xml- A string contains an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
getRootElement
Method getRootElement returns the root element for the xml document.- Returns:
- IXmlElement root xml element
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
isValid
Determine if the xml document in question- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-