com.inscoper.api.XMLDocument¶
XMLDocument class represents an entire XML document. More...
Public Functions¶
| Name | |
|---|---|
| synchronized void | delete() |
| XMLDocument() Default constructor. |
|
| void | loadFile(String xmlFile) Load from file. |
| boolean | tryLoadingFile(String xmlFile) Try loading from file. |
| void | saveFile(String xmlFile) Save to file. |
| XMLNode | getChild(String name) Get child node by name. |
| XMLNode | toXMLNode() Convert to XML node. |
Protected Functions¶
| Name | |
|---|---|
| XMLDocument(long cPtr, boolean cMemoryOwn) | |
| void | finalize() |
| long | getCPtr(XMLDocument obj) |
| long | swigRelease(XMLDocument obj) |
Protected Attributes¶
| Name | |
|---|---|
| transient boolean | swigCMemOwn |
Detailed Description¶
XMLDocument class represents an entire XML document.
Note: This class is non-copyable and non-movable.
This class handles loading and saving of XML documents and access to the root node.
Public Functions Documentation¶
function delete¶
function XMLDocument¶
Default constructor.
function loadFile¶
Load from file.
Parameters:
- xmlFile : The path to the XML file
Exceptions:
- InscoperException If an error occurs during loading
Loads the XML document from a file path.
function tryLoadingFile¶
Try loading from file.
Parameters:
- xmlFile : The path to the XML file
Return: True if loading was successful, false otherwise
Attempts to load the XML document without throwing an exception.
function saveFile¶
Save to file.
Parameters:
- xmlFile : The path where the XML file will be saved
Exceptions:
- InscoperException If an error occurs during saving
Saves the current XML document to a file.
function getChild¶
Get child node by name.
Parameters:
- name : The name of the child node
Return: The child XML node
Retrieves a direct child node with the name.
function toXMLNode¶
Convert to XML node.
Return: The root XML node
Returns the root element of the document as an XML node.
Protected Functions Documentation¶
function XMLDocument¶
function finalize¶
function getCPtr¶
function swigRelease¶
Protected Attributes Documentation¶
variable swigCMemOwn¶
Updated on 2026-09-03 at 12:14:19 +0200