mirror of
				https://gitlab.gnome.org/GNOME/libxml2.git
				synced 2025-10-30 10:45:36 +03:00 
			
		
		
		
	* 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>
 |