public class XMLUtils extends Object
| Constructor and Description |
|---|
XMLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getChildFromDocumentNode(String document,
String nodeTag)
Metodo que obtiene el fragmento XML (hijo) completo del nodo indicado, del documento XML
proporcionado.
|
static NodeList |
getChildsFromDocumentNode(String document,
String nodeTag)
Obtiene los fragmentos XML (hijos) completos del nodo indicado, del documento XML
proporcionado.
|
static String |
getInfoFromDocumentNode(String document,
String nodeTag)
Metodo que obtiene la informacion del nodo indicado, del documento XML proporcionado.
|
static String |
getTagValue(String tag,
Element elemento)
Obtiene el valor a partir del nombre del nodo y un Element
|
static boolean |
isXMLDocument(byte[] document)
Método para determinar si un documento es un XML o no
|
static String |
removeXMLHeader(String xmlSignature)
Borra la cabecera de un String XML
|
public static String getInfoFromDocumentNode(String document, String nodeTag) throws UnsupportedEncodingException, SAXException, IOException
document - Documento XMLnodeTag - Nombre del nodo del que se extrae la informacionIOExceptionSAXExceptionUnsupportedEncodingExceptionpublic static String getChildFromDocumentNode(String document, String nodeTag) throws UnsupportedEncodingException, SAXException, IOException
document - Documento XMLnodeTag - Nombre del nodo del que se extrae la informacionIOExceptionSAXExceptionUnsupportedEncodingExceptionpublic static boolean isXMLDocument(byte[] document)
document - Array de bytes con el contenido del documentopublic static String removeXMLHeader(String xmlSignature)
xmlSignature - public static NodeList getChildsFromDocumentNode(String document, String nodeTag) throws UnsupportedEncodingException, SAXException, IOException, ParserConfigurationException
document - Documento XMLnodeTag - Nombre de los nodos de los que se extrae la informacionIOExceptionSAXExceptionUnsupportedEncodingExceptionParserConfigurationExceptionCopyright © 2022. All rights reserved.