Hallo everyone,
my company uses Saxon to process their xml-files. I am trying to understand what kind of parsing method they are using:
Code:
System.setProperty("javax.xml.transform.TransformerFactory","net.sf.saxon.TransformerFactoryImpl");
...
CharArrayWriter buffer = new CharArrayWriter();
StreamResult resultSource = new StreamResult(buffer);
trans.transform(xmlSource, resultSource);
csv = buffer.toString();
I got an explanation, which I could not really understand. My question was: where can I see that we have parsed the source xml-file before we transform it.
The explanation was:
"The parsing is done "on the fly". So, a DOM-Tree or others was not created before."
Where from the above code is meant?
Other questions:
1. What is the default parser from Saxon?
2. Is my assumtion correct, by calling the method getTransformer, the xml-file is being parsed implizitly?
Thank you very much
Regards,
Ratna