|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.juntadeandalucia.afirma.custody.util.XMLUtils
public class XMLUtils
Clase de utilidad para tratar con documentos XML.
| Constructor Summary | |
|---|---|
XMLUtils()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtils()
| Method Detail |
|---|
public static String getInfoFromDocumentNode(String document,
String nodeTag)
throws UnsupportedEncodingException,
SAXException,
IOException
document - Documento XMLnodeTag - Nombre del nodo del que se extrae la informacion
IOException
SAXException
UnsupportedEncodingException
public static String getChildFromDocumentNode(String document,
String nodeTag)
throws UnsupportedEncodingException,
SAXException,
IOException
document - Documento XMLnodeTag - Nombre del nodo del que se extrae la informacion
IOException
SAXException
UnsupportedEncodingExceptionpublic static boolean isXMLDocument(byte[] document)
document - Array de bytes con el contenido del documento
public 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 informacion
IOException
SAXException
UnsupportedEncodingException
ParserConfigurationException
public static String getTagValue(String tag,
Element elemento)
tag - elemento -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||