C
Collin VanDyck
Hey,
I've profiled part of my application, which essentially aggregates and
transforms XML in various pipelines.
I spend a lot of time in these two lines of code:
Transformer transformer =
TransformerFactory.newInstance().newTransformer(new StreamSource(new
ByteArrayInputStream(stylesheet.getBytes())));
transformer.transform(new JDOMSource(in), out);
I'd like to streamline this somewhat, but don't know how to. Is there
anything glaringly obvious here, or do these two lines of code look about
right?
I'm basically taking in a org.jdom.Document (in) and transforming it
according to a XSLT string, and saving it in a JDOMResult (out).
thanks-
I've profiled part of my application, which essentially aggregates and
transforms XML in various pipelines.
I spend a lot of time in these two lines of code:
Transformer transformer =
TransformerFactory.newInstance().newTransformer(new StreamSource(new
ByteArrayInputStream(stylesheet.getBytes())));
transformer.transform(new JDOMSource(in), out);
I'd like to streamline this somewhat, but don't know how to. Is there
anything glaringly obvious here, or do these two lines of code look about
right?
I'm basically taking in a org.jdom.Document (in) and transforming it
according to a XSLT string, and saving it in a JDOMResult (out).
thanks-