It looks like your SVG is broken. xmlns needs a namespace URI, and people
also recommend to not use a DOCTYPE declaration.

Have a look at this:

http://jwatt.org/svg/authoring/

Cheers,

Uwe

On Fri, Jan 7, 2011 at 3:26 AM, Franck Leclerc
Franck.Leclerc-at-adacel.com|xerces-c developer mailing lis/Example
Allow|
<[email protected]> wrote:

> Can I use Xerces-C++ (DOM) to generate SVG file?
>
>
>
> I tried but attribute "xmlns" have a value ("svg") not recognized by SVG
> viewer (Explorer, Mozilla, Inkscape)
>
> I used Xerces 2.8.0. See below the generated file.
>
> I tried to change attribute value of "xmlns" without success (also I can
> not remove it).
>
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
>
> <!DOCTYPE svg>
>
> <svg xmlns="svg" height="200" width="320">
>
>  <g style="font-size:14">
>
>    <rect height="20" style="stroke:node; fill:red" width="29" x="100"
> y="20"/>
>
>    <text x="20" y="35">North</text>
>
>  </g>
>
> </svg>
>
>
>
> Thanks.
>
> lecf
>
>

Reply via email to