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. xml 데이터를 전 리더는 자바를 사용하여 작성하는 jdk의 붙박이 xml 처리 라이브러리 (JAXP에있는)를 통해 이러한 짜증나는 예외가 나는 오류 메시지를 지속적으로 hit : 가짜 속성 이름이 예상합니다. The error is displayed on the first line itself. 첫 번째 줄에 오류는 그 자체에 표시됩니다.

Google search wasn’t of much help. 구글 검색은 많은 도움이 아니합니다. 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. 그러나 비밀을 준의 오류 메시지가 실제로 문제의 원인을 알아두기없습니다.