Interview Q&A · questions with model answers

XML Interview Questions

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Your XPath query returns nothing, but the elements are clearly there. What's the likely cause?

    The most likely cause is that the document has a default namespace, so its elements are not in "no namespace." XPath 1.0 name tests without a prefix only match elements in no namespace, so //product…

Was this page helpful?

Report a mistake