Solving - “A pseudo attribute name is expected” Error in JAXP La solución - "Un pseudo nombre de atributo se espera" Error en JAXP
I was writing a xml data reader in Java using JDK’s inbuilt XML processing libraries (JAXP) when I persistently hit across this annoying exception with error message: A pseudo attribute name is expected. Yo estaba escribiendo un lector de datos XML en Java utilizando el JDK incorporado las bibliotecas de procesamiento de XML (JAXP) cuando la persistencia de éxito a través de este molesto con excepción mensaje de error: Un pseudo nombre de atributo se espera. The error is displayed on the first line itself. El error se muestra en la primera línea.
Google search wasn’t of much help. De búsqueda de Google no fue de mucha ayuda. I tried few suggestions, which were not of any use. He intentado algunas sugerencias, que no eran de cualquier uso. Then I noticed the obvious. Entonces me di cuenta de lo obvio.
My xml instruction was: Mi XML instrucción fue la siguiente:
< ?xml version="1.0" > <? Xml version = "1,0">
It was a typo. Se trata de un error tipográfico. It should have been: No debería haber sido:
< ?xml version="1.0" ?> <? Xml version = "1,0"?>
Obviously the xml instruction was illegal. Es evidente que la instrucción xml era ilegal. However the error message was cryptic and gave no hint to the actual cause of the problem. Sin embargo, el mensaje de error crípticos y se dio ninguna pista a la causa real del problema.
Filed under Filed under How To Cómo , Java Software El software de Java , Tech Note Nota técnica | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |




October 6th, 2006 at 8:40 am 6 de octubre de 2006, a las 8:40 am
Thank you for your post. Gracias por su puesto. I got a similar error message from a webservice I was calling. He recibido un mensaje de error similar desde un WebService yo estaba llamando. “WebServicesFault … Error in line 1: pseudo attribute name is expected” "… WebServicesFault Error en la línea 1: pseudo nombre de atributo se espera"
xml was my third parameter, but I was calling a TPM web service and couldn’t find server-side trace so I had no indication that it was during xml parsing of my 3rd parameter. xml fue mi tercer parámetro, pero yo estaba llamando a un servicio web TPM y no pudo encontrar del lado del servidor rastro por lo que he tenido ninguna indicación de que fue durante xml parser de mi 3er parámetro.
Yours is the only post on the web that was useful. La suya es el único puesto en la web que era útil. Without it it would’ve taking me a very long time to figure this one out. Sin ella se me ha tomando mucho tiempo a esta cifra.
Thank you very much. Muchas gracias.
Ally
April 2nd, 2008 at 2:31 pm 2 de Abril, 2008 a las 2:31 pm
Thanks for the point Angsuman, exact issue with CF here and it solved the problem. Gracias por el punto Angsuman, exacta cuestión aquí con FQ y se solucionó el problema.
April 4th, 2008 at 2:45 am 4 de abril de 2008 a 2:45 am
Happy to be of help. Feliz de ser de ayuda.
June 2nd, 2008 at 5:44 am 2 de Junio, 2008 a 5:44 am
Same as Mark here… thanks to you, now Google DOES help! Igual que Marcos aquí… gracias a ustedes, ahora Google ayuda!