esto es algo incomprensible
Me encuentro con el siguiente fallo cuando intento parsear (SAX, DocumentBuilder)un XML:
[Fatal Error] :-1:-1: The end-tag for element type "IDIO" must end with a '>' delimiter.
org.xml.sax.SAXException: The end-tag for element type "IDIO" must end with a '>' delimiter.
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:218)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:224)
etc..... pero resulta que el XML se ve perfectamente en el Internet explorer validado por su dtd correspondiente, QUE PASA?¿¿?¿?¿
[Fatal Error] :-1:-1: The end-tag for element type "IDIO" must end with a '>' delimiter.
org.xml.sax.SAXException: The end-tag for element type "IDIO" must end with a '>' delimiter.
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:218)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:224)
etc..... pero resulta que el XML se ve perfectamente en el Internet explorer validado por su dtd correspondiente, QUE PASA?¿¿?¿?¿
Es posilble que tengas un problema con el "encoding" del fichero xml.
Si el xml está en UTF-8 ten cuidado a la hora de leer el fichero en un buffer y luego crear un String con el mismo.
Deberás indicar cual es el encoding que estás usando:
String xml = new String(buffer, "UTF-8") // por ejemplo
Un saludo.
Si el xml está en UTF-8 ten cuidado a la hora de leer el fichero en un buffer y luego crear un String con el mismo.
Deberás indicar cual es el encoding que estás usando:
String xml = new String(buffer, "UTF-8") // por ejemplo
Un saludo.
