This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes namespace problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "namespace problem" Watch "namespace problem" New topic
Author

namespace problem

Bram Maes
Ranch Hand

Joined: Sep 27, 2006
Posts: 32
Hi all,

Can someone explain the following :






works well while




throws a NullPointerException... I don't get it...

regards,
Bram.
[ April 07, 2008: Message edited by: Bram Maes ]

SCJP 5.0, SCEA part I
Bram Maes
Ranch Hand

Joined: Sep 27, 2006
Posts: 32
Problem solved. Apparently when using the getElementsByTagNameNS the setNamespaceAware should be set to true while this is not important for getElementsByTagName.

Sorry for bothering all of you.

regards,
Bram.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You would think that in 2008, the default for an XML parser would be for it to be namespace-aware, wouldn't you? But no...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: namespace problem