es.inteco.eni.xml
Class ENIXmlUtils

Show UML class diagram
java.lang.Object
  extended by es.inteco.eni.xml.ENIXmlUtils

public final class ENIXmlUtils
extends java.lang.Object

Clase de utilidad para parsear los XML para ENI


Method Summary
static java.io.File getXmlFile(java.lang.String extension, XmlNode xmlFileContentRoot)
          Devuelve un fichero con el xml representado por el nodo y los hijos pasados por parámetro
static ValidationXmlResult validateWithExtXSD(java.lang.String xmlContent, java.lang.String filePath)
          Validación de un XML a partir de un conjunto de esquemas XSD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateWithExtXSD

public static ValidationXmlResult validateWithExtXSD(java.lang.String xmlContent,
                                                     java.lang.String filePath)
                                              throws java.io.IOException
Validación de un XML a partir de un conjunto de esquemas XSD

Parameters:
xmlContent - Contenido XML
filePath - Ruta del fichero
Returns:
Excepción al validar el XML
Throws:
java.io.IOException
org.xml.sax.SAXException

getXmlFile

public static java.io.File getXmlFile(java.lang.String extension,
                                      XmlNode xmlFileContentRoot)
                               throws javax.xml.parsers.ParserConfigurationException,
                                      java.io.IOException,
                                      javax.xml.transform.TransformerException
Devuelve un fichero con el xml representado por el nodo y los hijos pasados por parámetro

Parameters:
extension - Extension del fichero
xmlFileContentRoot - Nodo del XML
Returns:
Un fichero con el xml representado por el nodo y los hijos pasados por parámetro
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.transform.TransformerException