Solving - “A pseudo attribute name is expected” Error in JAXP解決-"疑似属性名が期待さ"にエラーが発生J AXPの
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.私はJavaで記述するXMLデータリーダーを使用してJDKのinbuilt XML処理ライブラリ( JAXPの)恒常的にヒット時にエラーメッセージが表示さ全体この迷惑な例外:疑似属性名が予想される。 The error is displayed on the first line itself.このエラーは自身の最初の行に表示されています。
Google search wasn’t of much help. Google検索はない多くのヘルプです。 I tried few suggestions, which were not of any use.みましたいくつかの提案を、任意の使用に含まれていないのです。 Then I noticed the obvious.次に気付いたの明白です。
My xml instruction was:マイXMLの命令は:
< ?xml version="1.0" > <ですか? XMLのバージョン= " 1.0 " >
It was a typo.それは、タイプミスです。 It should have been:それはずだった:
< ?xml version="1.0" ?> <ですか? XMLのバージョン= " 1.0 " ですか? >
Obviously the xml instruction was illegal.明らかには、 XML命令は違法です。 However the error message was cryptic and gave no hint to the actual cause of the problem.しかし、あいまいなエラーメッセージが表示さは明らかにしなかったとのヒントを、実際のが原因で発生する。
Filed under提出されて How Toどのように , 、 Java Software Javaソフトウェア , 、 Tech Note技術のノート | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |





October 6th, 2006 at 8:40 am 2006年10月6日8:40アム
Thank you for your post.ポストにお問い合わせいただきありがとうございます。 I got a similar error message from a webservice I was calling.私は、同様のエラーメッセージが表示さから私はWebサービスを呼び出す。 “WebServicesFault … Error in line 1: pseudo attribute name is expected” " webservicesfault …にエラーが発生1行目:疑似属性名が期待"
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のが私の3つ目のパラメータが、それはTPMのWebサービスをコールするとサーバー側のトレースが見つかりませんでしたがないのでXMLパース中に示していることは私の第3パラメータを指定します。
Yours is the only post on the web that was useful.あなたは、ウェブ上にのみ作成された有用です。 Without it it would’ve taking me a very long time to figure this one out.それはそれは私には非常に長い時間を撮影図この1つのアウトします。
Thank you very much.本当にありがとうございます。
Ally同盟国
April 2nd, 2008 at 2:31 pm 2008年4月2日は2:31 pmの
Thanks for the point Angsuman, exact issue with CF here and it solved the problem.ポイントのAngsumanてくれてありがとう、継続前誌についての正確な問題があると、それを解決してください。
April 4th, 2008 at 2:45 am 2008年4月4日の午前2時45分
Happy to be of help.幸せの手助けをします。
June 2nd, 2008 at 5:44 am 2008年6月2日は5時44時
Same as Mark here… thanks to you, now Google DOES help!ここで…と同じマークのおかげで、今すぐGoogleでは助けて!