0

With reference to the post for mapping elements ignoring namespaces: How to ignore namespace when selecting XML nodes with XPath

Solutions:

//*[local-name()='name']
//*:name

Have the following question: What about mapping from an element that had empty namespace that got automatically inserted to a request ? Tried the above but it's not picking the empty-namespace elements ...

Thanks

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147
Darway
  • 1
  • 2
    How about showing us what the XML looks like? – JLRishe Mar 06 '18 at 04:10
  • Both those expressions should select elements in any namespace including elements in no namespace. (I assume you're using "empty namespace" to mean what is technically "no namespace") – Michael Kay Mar 06 '18 at 09:12

0 Answers0