|
Hi,
I want to use "public org.w3c.dom.DocumentFragment
parseXML(java.lang.String text,
org.w3c.dom.Document doc)" but how to use the "getURL" and so the
"getURLDone"??
My Code:
UserAgentAdapter userAgent = new
UserAgentAdapter();
GVTBuilder builder = new GVTBuilder(); BridgeContext ctx = new BridgeContext(userAgent); ctx.setDynamic(true); builder.build(ctx, doc); BaseScriptingEnvironment scriptEnvironment = new BaseScriptingEnvironment(ctx); Window
newwin = scriptEnvironment.createWindow();
//newwin.getURL(svgURI2,
getURLDone());
//Node mynode = newwin.parseXML(svgURI1, doc); //svgRoot.appendChild(mynode);
FileOutputStream outStream = new
FileOutputStream("C:/out.svg");
Writer outf = new OutputStreamWriter(outStream, "UTF-8"); DOMUtilities.writeDocument(doc,outf); outf.flush(); thanks to reply.
Best regards.
|
- Parsing XML Bastien DEBLAIS
- Re: Parsing XML Thomas DeWeese
