Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

namespace problem

 
Bram Maes
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bram Maes
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20771
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic