This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt 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 Introducing JavaFX 8 Programming this week in the JavaFX 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
Sheriff

Joined: Oct 14, 2005
Posts: 19739
    
  10

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
 
jQuery in Action, 3rd edition