Re: Adding a SVG doc from a String to a SVG document using javascript

"Robert Longson" <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
Use DOMParser. See http://msdn.microsoft.com/en-gb/library/ie/ff975060%28v=vs.85%29.aspx for details.

Best regards

Robert.

--- In [email protected], "deimos1975"  wrote:
>
> Sorry newbie.
> Here is the file with the code: file
>
  P89zuSWSiRz2XLD-GDOAY55zUbNE-pjXiDVBVjnmkOhYKymIEeQvIF/stringTosvg>
> 
> 
> --- In [email protected], "deimos1975"  wrote:
> >
> > Hi! My Javascript function receives a String as a parameter. This
> String is a svg tag with several nodes as children. I want to parse it
> into a SVG and add it as a nodechildren to my SVG file is:
> >
> >
> >  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-flat-20030114.dtd">
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Where strSVG=" Title "
> >
> > But this returns a HIERARCHY_REQUEST_ERR (3) On:
> SVGDocument.getElementById('grafico1').appendChild(newNode);
> >
> > I think the proble is to parse String to a valid SVG node....
> > This is on IE9.
> > Thank you!
> >
> 
> 
> 
> [Non-text portions of this message have been removed]
>




------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.