Package org.javlo.xml
Class XMLFactory
- java.lang.Object
-
- org.javlo.xml.XMLFactory
-
public class XMLFactory extends Object
- Version:
- 1.3
- Author:
- pvandermasen
-
-
Constructor Summary
Constructors Constructor Description XMLFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeXML
getFirstNode(File xmlFile)
get the root node from a file (grh)static NodeXML
getFirstNode(InputStream inXML)
get the root node from an input stream (grh)static NodeXML
getFirstNode(Reader inXML)
get the root node from an input stream (pvdm)static NodeXML
getFirstNode(String xml)
get the root node from an url (grh)static NodeXML
getFirstNode(URL myURL)
get the root node from an URL (grh)static NodeXML
getFirstNodeFromXML(String xml)
static void
main(String[] args)
-
-
-
Method Detail
-
getFirstNodeFromXML
public static NodeXML getFirstNodeFromXML(String xml) throws Exception
- Throws:
Exception
-
getFirstNode
public static NodeXML getFirstNode(InputStream inXML) throws Exception
get the root node from an input stream (grh)- Throws:
Exception
-
getFirstNode
public static NodeXML getFirstNode(String xml) throws Exception
get the root node from an url (grh)- Throws:
Exception
-
getFirstNode
public static NodeXML getFirstNode(Reader inXML) throws Exception
get the root node from an input stream (pvdm)- Throws:
Exception
-
getFirstNode
public static NodeXML getFirstNode(File xmlFile) throws Exception
get the root node from a file (grh)- Throws:
Exception
-
getFirstNode
public static NodeXML getFirstNode(URL myURL) throws Exception
get the root node from an URL (grh)- Throws:
Exception
-
main
public static void main(String[] args)
-
-