On Monday, February 25, 2002, at 06:03 AM, James Bates wrote:

OK, sorry; it is Xalan's "transformer". calling newTransformer() with no
arguments makes an "identity" transformer. It's just a trick on my part to be able to read in and parse a byte-array, detecting the encoding using the rules set out in the XML spec (Xerces sees to this), and then outputting that exact XML to a java.lang.String. (both javax.xml.stream.StreamSource and javax.xml.stream.StreamResult accept byte arrays or Strings as argument and perform necessary conversions correctly)



Is this an expensive operation? I believe this same code is used by the import task which would call it repeatedly.


James


Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org
Senior Technologist (Your company name here)



Reply via email to