Why for Our XML Parser Does selectSingleNode return NULL When the xmlns Attribute is Added?
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.