I am having a problem using DOMSource as input in transfomer.
If I take a test.xml file, parse it into a DOM, then use
 
transformer.transform(new DOMSource(myDOM), new StreamResult(out));
 
the transformation fails to find the first set of elements and just prints them
out.
 
However, if I do
 
transformer.transform(new StreamSource(test.xml), new StreamResult(out));
 
everything works fine.
 
Any Help is appreciated,
I am attaching the xml and xslt file and sample jsp page for review.
 
Thanks in Advance,
Bob

<<attachment: domsource-help.zip>>

Reply via email to