W3C home > Mailing lists > Public > www-svg@w3.org > January 2010

Re: DOM APIs - XML to SVG parsing

From: Francis Hemsher <fhemsher@gmail.com>
Date: Sat, 23 Jan 2010 10:56:38 -0500
Message-ID: <c41bcc9d1001230756m7b224ff5n86a9f816c7a2f338@mail.gmail.com>
To: www-svg@w3.org
There are two things I do lots of:
1.Create SVG elements from XML files.
2.Transfer SVG elements between documents.

Typically I use the  Adobe SVG Viewer printNode() and parseXML() functions.
as follows:
1. Create an SVG elem from XML String:
var docFrag=parseXML(xmlString,DocSVG)
var svgElem=docFrag.firstChild

2.Copy an SVG element from Doc1SVG to Doc2SVG:
var svgString=Doc1.printNode(Doc1SVGelement)
var docFrag=parseXML(svgString,Doc2SVG) //---Doc2 parseXML---
var svgElem=docFrag.firstChild

We certainly need some form of  these methods to be included.

Back in 2002, Antoine Quint wrote:
"...the SVG Working Group has received strong feedback from the SVG
community to make these methods available in a W3C standard. The Group
is looking into that and SVG 1.2 looks like a great candidate to have
those two methods defined (probably as convenient shorthands for DOM
Level 3 Load and Save methods)."


I've  looked around the current and proposed W3C Recommendations and
can't find reference to this. Have these features been addressed under
a subject heading that I have missed?

Thanks for any feedback,
Received on Saturday, 23 January 2010 15:57:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:19 UTC