aspose file tools*
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 Spring in Action this week in the Spring 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: 18657
    
    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...
 
 
subject: namespace problem