Stefan wrote:
I'm running into the following problem trying to
create a SVG 1.2 DOM tree from an URI:
"The current document is unable to create an element
of the requested type (namespace:
http://www.w3.org/2000/svg, name: flow)."
The SVG Document contains elements specified in SVG
1.2 to display text. How can I specify the correct
namespace so I can use SVG 1.2 elements creating the
SVG DOM tree?
Batik contains a partial implementation of the
currently proposed elements however because SVG 1.2
is not yet a standard and it is not certain or clear
that these elements will make it into the final
version of the specification (unchanged or otherwise)
we put our 'trial' implementation of such elements
in the Batik namespace.
You can look at the samples/extensions/flowText.svg
to see how we reference these (note
the change of the default namespace on
the flowText element).
Here is how I'm trying to create the DOM tree:
...
String parser =
XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new
SAXSVGDocumentFactory(parser);
Document doc = f.createDocument(someUri);
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]