Hi Joe/Simon and others...
Thanks for your responses. It helps to know that the parser needs to
namespace aware.
That was mainly the issue. In the jaxp, I was creating the builder from the
factory before I set the NamespaceAware to be true. Therefore it was not
picked up by the builder. The correct order should be like the
following....stupid mistake...but the fact that you pointed out it was
Namespace awareness related problem helped me debug my problem.
Thanks.


Vikas
            factory = DocumentBuilderFactory.newInstance();
            factory.setNamespaceAware(true);
            builder = factory.newDocumentBuilder();




-----Original Message-----
From: Joseph Kesselman [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 17, 2002 7:57 AM
To: [EMAIL PROTECTED]
Subject: RE: getLocalName() method on Node


Local name will be null if the node was created using the old DOM Level 1 
non-namespace-aware createElement/createAttribute factory methods. The fix 
is to NEVER use those methods in any namespace-aware application. (They're 
"effectively deprecated" -- their only legitimate use is to allow old DOM 
Level 1 code to run against a DOM Level 2 parser.)

______________________________________
Joe Kesselman  / IBM Research

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to