Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why for Our XML Parser Does selectSingleNode return NULL When the xmlns Attribute is Added?

0
Posted

Why for Our XML Parser Does selectSingleNode return NULL When the xmlns Attribute is Added?

0

Our code parses an XML file that is an instance of our own XML schema ApplicationStructure. It works fine, until we add xmlns=”http://www.oracle.com/JHeadstart/ApplicationStructure” in the top-level tag. Then the call to selectSingleNode suddenly returns NULL. If we remove the xmlns attribute, selectSingleNode again returns the node we want.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123