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. Sono stato a scrivere un lettore di dati XML in Java utilizzando JDK inbuilt biblioteche di elaborazione XML (JAXP) persistentemente quando ho colpito in tutta questa fastidiosa eccezione con messaggio di errore: una pseudo nome di attributo è previsto. The error is displayed on the first line itself. L'errore viene visualizzato sulla prima riga stessa.

Google search wasn’t of much help. Di ricerca di Google non è stato di molto aiuto. I tried few suggestions, which were not of any use. Ho provato alcuni suggerimenti, che non sono state di qualsiasi uso. Then I noticed the obvious. Poi ho notato l'evidente.

My xml instruction was: Il mio è stato istruzioni XML:
< ?xml version="1.0" > <? Xml version = "1,0">

It was a typo. E 'stato un refuso. It should have been: Essa avrebbe dovuto essere:
< ?xml version="1.0" ?> <? Xml version = "1,0"?>

Obviously the xml instruction was illegal. Ovviamente le istruzioni xml è stato illegale. However the error message was cryptic and gave no hint to the actual cause of the problem. Tuttavia il messaggio di errore è stato criptico e ha dato nessun suggerimento che la vera causa del problema.