Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

Solving - “A pseudo attribute name is expected” Error in JAXP

July 6th, 2006 by Angsuman Chakraborty

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. 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 version="1.0" >

It was a typo. It should have been:
< ?xml version="1.0" ?>

Obviously the xml instruction was illegal. However the error message was cryptic and gave no hint to the actual cause of the problem.


Filed under How To, Java Software, Tech Note | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»How To Solve Apache Ant java Task Execution Errors
»Solving: Permission denied to get property HTMLDivElement.nodeType when calling method: [nsIDOMEventListener::handleEvent] nsresult: 0x8057001e (NS_ERROR_XPC_JS_THREW_STRING) location: <unknown> data: no
»Solving CSS Stylesheet Not Loading / Rendering Error
»Solving Failure To Forward Emails in Mozilla Thunderbird by Message Filters; Understanding Thunderbird Account Architecture
»Fixing - configure: error: C++ compiler cannot create executables
»DansGuardian Configure Error Fix - configure: error: pcre-config not found!
»Solving named.conf error: change directory to /var/named/chroot/var/named failed file not found
»How To Protect Yourself From Harddisk Crash & Failures
»Solution: Missing Dependency: faad2 < 2.5 is needed by package ffmpeg-libs & Error: vlc conflicts with faad2 >= 2.5
»How To Solve Missing Dependency Errors in Yum
»Solution: MySQL Master-Master Replication Fails With ERROR 1200 (HY000) on Master
»Understanding Translator Error Page
»PHP Encapsulation Surprises
»Blog Comments Problem Solved
»Shutdown Apache James Mail Server - Java Utility

3 Responses to “Solving - “A pseudo attribute name is expected” Error in JAXP”

  1. Ally Says:

    Thank you for your post. I got a similar error message from a webservice I was calling. “WebServicesFault … Error in line 1: pseudo attribute name is expected”
    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.
    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.
    Thank you very much.
    Ally

  2. Mark Ghosh Says:

    Thanks for the point Angsuman, exact issue with CF here and it solved the problem.

  3. Angsuman Chakraborty Says:

    Happy to be of help.

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"I never think of the future. It comes soon enough." - Albert Einstein