Class XmlBrowser
java.lang.Object
|
+----XmlBrowser
- public class XmlBrowser
- extends Object
Parses the XML document and maps it to the Java classes
created for the DTD of this document by the xmltool.classgen
module.
-
marker
- Value used as a separator for the path generated from the XML document
-
valAll
- Validation array, to check if all the elements have been considered
-
XmlBrowser(String[])
- Constructor for this class, takes the name of the XML document and parses it
-
inArray(String)
- Returns if the element or attribute has been considered or not
-
putIntoArray(String)
- Puts into ValAll, all the elements and attributes
valAll
public String valAll[]
- Validation array, to check if all the elements have been considered
marker
public static String marker
- Value used as a separator for the path generated from the XML document
XmlBrowser
public XmlBrowser(String args[]) throws ODMGException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException
- Constructor for this class, takes the name of the XML document and parses it
- Parameters:
- args - Name of XML document
- Throws: ODMGException
- cant save data
- Throws: InvocationTargetException
- cant instantiate object
- Throws: IllegalAccessException
- cant access object
- Throws: ClassNotFoundException
- class not found
- Throws: InstantiationException
- cant instantiate object
putIntoArray
public void putIntoArray(String string)
- Puts into ValAll, all the elements and attributes
- Parameters:
- string - the element or attribute to be entered
inArray
public boolean inArray(String string)
- Returns if the element or attribute has been considered or not
- Parameters:
- string - the element or attribute to be checked
return boolean true if the element is present in the array, else false