xpath2.res 757 B

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0"?>
  2. <doc>
  3. <parent>
  4. <discarded>discarded</discarded>
  5. <preserved/>
  6. This text node must be discarded
  7. <discarded>discarded</discarded>
  8. <preserved>
  9. content1
  10. <child1/>
  11. <child2>content2</child2>
  12. <preserved>too</preserved>
  13. <child2>content3</child2>
  14. <preserved/>
  15. <child2>content4</child2>
  16. <preserved/>
  17. <child2>content5</child2>
  18. content6
  19. </preserved>
  20. This text node must be discarded
  21. <discarded>discarded</discarded>
  22. This text node must be discarded
  23. <preserved/>
  24. This text node must be discarded
  25. <preserved/>
  26. This text node must be discarded
  27. <discarded>discarded</discarded>
  28. This text node must be discarded
  29. </parent>
  30. </doc>