Hi,
I want to parse an XML string with SVG code into a Node object, but I
don't have any success. Here's variant one I tried:

Node n = 
svgCanvas.getUpdateManager().getScriptingEnvironment().getWindow().parseXML("<use
xlink:href=\"#QuestionMark\" overflow=\"visible\" width=\"10.512\"
height=\"6.273\" x=\"5\" y=\"10\" />", svgCanvas.getSVGDocument());

wich returns null.

Variant two:

HashMap<String,String> map = new HashMap<String,String>();
map.put("xlink", "http://www.w3.org/1999/xlink";);

Node n = DOMUtilities.parseXML("<use xlink:href=\"#QuestionMark\"
overflow=\"visible\" width=\"10.512\" height=\"6.273\" x=\"5\"
y=\"10\" />", doc, svgFile.toURI().toString(), map, "g",
documentFactory);

which also returns null. doc is the effective SVG document, svgFile
the svg document file loaded inside the svgCanvas and documentFactory
the SAXSVGDocumentFactory that loaded svgFile and created the
SVGDocument (doc).

Could anybody please help me?

Regards,
Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to