Having this (simplified) XML:
Pol
You can use a union in your XPath expression. Just use the operator: |
//Document/Placemark/name | //Document/Placemark/Polygon/coordinates
Don't use the // (descendant axis) if you don't need to. Using //, this would also work: //name | //coordinates. It's better performance-wise to specify the exact path.