test3.xml 833 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <doc>
  2. <parent>
  3. <discarded>
  4. <discarded/>
  5. </discarded>
  6. <preserved/>
  7. This text node must be discarded
  8. <discarded>
  9. <discarded/>
  10. </discarded>
  11. <preserved>
  12. content1
  13. <child1></child1>
  14. <child2>content2</child2>
  15. <preserved>too</preserved>
  16. <child2>content3</child2>
  17. <preserved></preserved>
  18. <child2>content4</child2>
  19. <preserved/>
  20. <child2>content5</child2>
  21. content6
  22. </preserved>
  23. This text node must be discarded
  24. <discarded>
  25. <discarded/>
  26. </discarded>
  27. This text node must be discarded
  28. <preserved></preserved>
  29. This text node must be discarded
  30. <preserved/>
  31. This text node must be discarded
  32. <discarded>
  33. <discarded/>
  34. </discarded>
  35. This text node must be discarded
  36. </parent>
  37. </doc>