Solving - “A pseudo attribute name is expected” Error in JAXP Risolvere - "Un nome di attributo pseudo è atteso" Errore in 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. 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.
Filed under Elencato sotto How To Come , Java Software Software Java , Tech Note Nota tech | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




October 6th, 2006 at 8:40 am 6 ottobre 2006 a 8:40 am
Thank you for your post. La ringrazio per il tuo post. I got a similar error message from a webservice I was calling. Ho ricevuto un messaggio di errore simile da un Webservice ero chiamata. “WebServicesFault … Error in line 1: pseudo attribute name is expected” "… WebServicesFault Errore in linea 1: pseudo nome di attributo è atteso"
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 è stato il mio terzo parametro, ma mi è stata chiamata TPM servizio web e non poteva trovare sul lato server traccia così ho avuto alcuna indicazione che essa è stata nel corso di analisi XML del mio 3a parametro.
Yours is the only post on the web that was useful. La vostra è l'unico posto sul Web che è stato utile. Without it it would’ve taking me a very long time to figure this one out. Senza di esso sarebbe tenuto mi ha molto tempo a questa cifra.
Thank you very much. Grazie mille.
Ally Alleato
April 2nd, 2008 at 2:31 pm 2 aprile 2008, 2:31 pm
Thanks for the point Angsuman, exact issue with CF here and it solved the problem. Grazie per il punto Angsuman, esatto problema con CF qui e risolto il problema.
April 4th, 2008 at 2:45 am 4 aprile 2008, 2:45 am
Happy to be of help. Felice di essere di aiuto.
June 2nd, 2008 at 5:44 am 2 giugno 2008, 5:44 am
Same as Mark here… thanks to you, now Google DOES help! Mark stesso come qui… grazie a voi, ora Google aiuto!