Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Only look for attributes for element nodes #99
The main issue was for non-element nodes the ns and nsDef structures can be non-null but also invalid as XML_ATTRIBUTE_NODE cannot have its own attributes or namespace definitions. The code assumed they would be NULL but that is clearly not true.
The fix is to only check for attributes if it is an XML_ELEMENT_NODE and return
One other issue this raises is how we want display non-element nodes. Should