public class XmlReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
DataManager |
dm |
Constructor and Description |
---|
XmlReader(DataManager dm) |
Modifier and Type | Method and Description |
---|---|
DataNode |
addDataNode(org.w3c.dom.Element ele)
Adds a DataNode to the root node
|
DataNode |
addDataNode(org.w3c.dom.Element ele,
java.lang.String schema_identifier)
Adds a DataNode to the root node
|
void |
addDataToNode(DataNode node,
org.w3c.dom.Element ele)
Adds Data to an existing node from an element.
|
java.util.List<org.w3c.dom.Element> |
getChildren(org.w3c.dom.Node node)
Retrieves the child Elements
|
java.util.List<org.w3c.dom.Element> |
getChildren(org.w3c.dom.Node node,
java.lang.String name)
Retrieves the child Elements with the given name
|
void |
getId(org.w3c.dom.Element ele,
DataNode n)
This method will automatically add an id value to the node's schema if an id XML element exists in the element passed to it.
|
org.w3c.dom.Document |
load(java.io.File file)
Loads an XML document from a file
|
public DataManager dm
public XmlReader(DataManager dm)
public org.w3c.dom.Document load(@NotNull java.io.File file) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.sql.SQLException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.sql.SQLException
@NotNull public java.util.List<org.w3c.dom.Element> getChildren(@NotNull org.w3c.dom.Node node, java.lang.String name)
@NotNull public java.util.List<org.w3c.dom.Element> getChildren(@NotNull org.w3c.dom.Node node)
public void getId(@NotNull org.w3c.dom.Element ele, @NotNull DataNode n) throws java.lang.Exception
ele
- n
- java.lang.Exception
@NotNull public DataNode addDataNode(@NotNull org.w3c.dom.Element ele) throws java.lang.Exception
java.lang.Exception
@NotNull public DataNode addDataNode(@NotNull org.w3c.dom.Element ele, java.lang.String schema_identifier) throws java.lang.Exception
java.lang.Exception
public void addDataToNode(@NotNull DataNode node, @NotNull org.w3c.dom.Element ele) throws java.lang.Exception
java.lang.Exception