Re: DOM APIs - XML to SVG parsing

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
mySVG.appendChild(svgElem)

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
mySVG2.appendChild(svgElem)

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)."

see:
http://www.xml.com/pub/a/2002/07/03/adobesvg.html

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,
Francis

Received on Saturday, 23 January 2010 15:57:11 UTC