hello list,
i have two questions, both of which are not entirely high level stuff, i
guess. i would still be most grateful if anyone could provide me with
pointers ...
number 1:
why can't i select g nodes with XPath? i do this:
String xmlParser =
XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory df = new SAXSVGDocumentFactory(xmlParser);
SVGDocument doc = null;
try {
doc = (SVGDocument)df.createDocument(
new File(is).toURL().toString()
);
} catch (IOException ioe) {
ioe.printStackTrace();
System.exit(0);
}
XPathFactory xpf=XPathFactory.newInstance();
XPath xp=xpf.newXPath();
XPathExpression xpe=xp.compile("//g");
NodeList nl=(NodeList)xpe.evaluate(doc, XPathConstants.NODESET);
System.err.println(nl.getLength());
which returns "0" ... although there ARE some g nodes in ther
number 2:
what do i have to do to initialize the SVGLocatableSupport user for
getBBox() so that it isn't null? obviously, the SVGContext might be
null, but how do i obtain a properly initialised SVGContext object?
SVGOMGElement gElement = [code to find it];
gElement.setSVGContex( ???? );
SVGRect bbox=gElement.getBBox();
.rm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]