xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Parsing String data into an SVG document?
Date Thu, 08 Jun 2006 16:53:38 GMT
Hi Michael,

   I would suggest looking at the code for:
        batik.bridge.ScriptingEnvironment.parseXML for how to accomplish 

"Bishop, Michael W. CONTR J9C880" <Michael.Bishop@je.jfcom.mil> wrote on 
06/07/2006 02:02:37 PM:

> If I receive a snippet of XML as a String, I?d like to create an 
> from it.  The ultimate goal is to import it into another document.  In 
> case of whiteboarding over XMPP, I receive the following:
> <rect x=?10? y=?10? width=?10? height=?10?/>
> I?d like to use the SAXSVGDocumentFactory to load this as an 
SVGDocument.  The
> only way I can see how to do this is to provide a URI.  Is there a way I 
> go from String data to SVGDocument?  The ultimate goal is to receive a 
> and import it as a Node in my whiteboard.  My solution was to create an 
> SVGDocument based on the String data, then import the node from one 
> to the other.  I?m struggling with going from String -> DOM.
> Michael Bishop

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message