libxml2dom

tests/test_svg_invalid.xml

346:f33bc3431214
2008-09-26 Paul Boddie Changed text node handling around insertBefore and appendChild, since the underlying libxml2mod functions previously employed would merge text nodes and silently free redundant nodes, causing potential crash situations. Added a test of text node handling. Updated release information.
     1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>     2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">     3 <svg width="40.000000mm" height="60.000000mm" id="svg1" xmlns="http://www.w3.org/2000/svg">     4   <defs id="defs3"/>     5   <horses>Oh yeah!</horses>     6   <g id="layer1">     7     <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ff0000;stroke-width:21.259844;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"     8        d="M 70.866142,26.574797 L 70.866142,186.02362 M 26.574803,26.574797 L 115.15748,26.574797"     9        id="path10002" />    10   </g>    11 </svg>    12