public class XmlToKeel extends Importer
XmlToKeel
This class extends from the Importer class. It is used to read data with xml format and transform them to the KEEL format.processHeader
Constructor and Description |
---|
XmlToKeel(java.lang.String nullValueUser,
java.lang.String nameLabelUser)
CsvToKeel class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
FindParent(Element current,
java.lang.String childrenName)
Searchs in the whole xml tree to find the parent of the node or xaml tag whose name is
equals to the one given as parameter.
|
java.lang.String |
ListChildrenText(Element current,
int cont)
Recursive method that returns the text containing all the descendants of a xml tag.
|
void |
Start(java.lang.String pathnameInput,
java.lang.String pathnameOutput)
Method used to transform the data from the XML file given as parameter to
KEEL format file which will be stored in the second file given.
|
DataType, Save, setProcessHeader, UcFirst
public XmlToKeel(java.lang.String nullValueUser, java.lang.String nameLabelUser)
nullValueUser.
- Null value symbols.nameLabelUser.
- Root tag name that contains each of the data.public void Start(java.lang.String pathnameInput, java.lang.String pathnameOutput) throws java.lang.Exception
pathnameInput
- XML file path.pathnameOutput
- KEEL file path.java.lang.Exception
- if the files can not be read or written.public java.lang.String ListChildrenText(Element current, int cont)
current
- actual node or xml tag.cont
- descendants counter.public void FindParent(Element current, java.lang.String childrenName)
current
- actual node or xml tag.childrenName
- name node asked.