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.しかし、あいまいなエラーメッセージが表示さは明らかにしなかったとのヒントを、実際のが原因で発生する。