I am running into an issue where by studying XMLPath on W3 Schools it is not teaching me to construct my queries correctly for XML files which contain namespaces.
So I learned to write my query like this, which works correctly on XML testers
/ExportedObjects/ExportedObject[ObjectValue/@superClasses="Document"]
Auto detection of name spaces doesn't make this suddenly work. So for a namespaced xml file I understand you must do this
Each element must be surrounded with:
/*[name()='element']
That results in this query
/*[name()='ExportedObjects']/*[name()='ExportedObject']/[*[name()='ObjectValue']/@superClasses="Document"]
But this query returns nothing as well, why is that?
I really wish I could just turn off namespaces since I don't see why I need them, I just want to browse the XML hierarchy since pattern matching is useless in hierarchical system
Update:
Based on this article I tried using /ExportedObjects:ExportedObjects instead and Workflow says that this is an invalid XPath expression
https://docs.microsoft.com/en-us/dotnet/standard/data/xml/xpath-queries-and-namespaces