public class XmlTools extends Object
| Constructor and Description |
|---|
XmlTools() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
fileToNode(String urlfile) |
static String |
nodeToString(Node node)
Convert a Node in XML String.
|
static Node |
streamToNode(InputStream is) |
static Node |
stringToNode(String xml)
Create an org.w3c.dom.Node object using a given xml in a string object.
|
static Node |
urlToNode(String urlxml)
Create a node from a given file.
|
public static String nodeToString(Node node) throws CiliaIllegalParameterException
node - to be converted.CiliaIllegalParameterExceptionpublic static Node stringToNode(String xml) throws CiliaIllegalParameterException
xml - the xml in a string objectCiliaException - when there is a problem to build the Node.CiliaIllegalParameterExceptionpublic static Node urlToNode(String urlxml) throws CiliaIllegalParameterException
urlxml - URL where the file is.CiliaException - when there is a problem to build the Node.CiliaIllegalParameterExceptionpublic static Node fileToNode(String urlfile) throws CiliaIllegalParameterException
CiliaIllegalParameterExceptionpublic static Node streamToNode(InputStream is) throws CiliaIllegalParameterException
CiliaIllegalParameterExceptionCopyright © 2012-2013 Adele Team | LIG. All Rights Reserved.