Ref: berkut_svg_1
Hello.
I'm trying parser a SVG file with Xerces-C++... A easy SVG file could be:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="10" height="10"> <polygon id="shape" points="0,3 0,7 3,10 7,10 10,7 10,3 7,0 3,0" style="fill:rgb(0,255,0);stroke:rgb(0,0,0);stroke-width:1"/> </svg>
My first problem is the parser doesn't recognize DOCTYPE so I deleted this section of my file but I think that it isn't a good idea and I'd like to know how solve it.
My second problem is to handle the attributes, for instance "style". Are there methods to get the values 0, 255 and 0 of the property fill:rgb?
The last problem is the parser doesn't accept some elements, for instance:
<image x="178" y="24" width="10" height="10"
xlink:href="puerto_electrico.svg"
transform="translate(99 -3)"/>
Thanks in avance...
Berkut.
Hello.
I'm trying parser a SVG file with Xerces-C++... A easy SVG file could be:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="10" height="10"> <polygon id="shape" points="0,3 0,7 3,10 7,10 10,7 10,3 7,0 3,0" style="fill:rgb(0,255,0);stroke:rgb(0,0,0);stroke-width:1"/> </svg>
My first problem is the parser doesn't recognize DOCTYPE so I deleted this section of my file but I think that it isn't a good idea and I'd like to know how solve it.
My second problem is to handle the attributes, for instance "style". Are there methods to get the values 0, 255 and 0 of the property fill:rgb?
The last problem is the parser doesn't accept some elements, for instance:
<image x="178" y="24" width="10" height="10"
xlink:href="puerto_electrico.svg"
transform="translate(99 -3)"/>
Thanks in avance...
Berkut.