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

2
  • 2
    How about showing us what the XML looks like? Commented Mar 6, 2018 at 4: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") Commented Mar 6, 2018 at 9:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.