mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-14 19:24:06 +03:00
3d354a798e
* doc/examples/xpath2.c doc/examples/xpath2.res: handle and explain a very tricky problem when modifying the tree based on an XPath result query. Daniel
31 lines
757 B
XML
31 lines
757 B
XML
<?xml version="1.0"?>
|
|
<doc>
|
|
<parent>
|
|
<discarded>discarded</discarded>
|
|
<preserved/>
|
|
This text node must be discarded
|
|
<discarded>discarded</discarded>
|
|
<preserved>
|
|
content1
|
|
<child1/>
|
|
<child2>content2</child2>
|
|
<preserved>too</preserved>
|
|
<child2>content3</child2>
|
|
<preserved/>
|
|
<child2>content4</child2>
|
|
<preserved/>
|
|
<child2>content5</child2>
|
|
content6
|
|
</preserved>
|
|
This text node must be discarded
|
|
<discarded>discarded</discarded>
|
|
This text node must be discarded
|
|
<preserved/>
|
|
This text node must be discarded
|
|
<preserved/>
|
|
This text node must be discarded
|
|
<discarded>discarded</discarded>
|
|
This text node must be discarded
|
|
</parent>
|
|
</doc>
|