xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yudo pria" <y...@rileks.co.id>
Subject generate XML on the fly
Date Tue, 14 Aug 2001 09:54:26 GMT
i'm new on this stuff,
and i have a problem when i tried to transform dynamic xml
into html.

i've tried servlet samples packed on xalan-j_2_2_d6.zip
named SimpleXSLTServlet.java.
the code works so fine.

but, in my case, i have thousands elements (products),
so i think it's not a good solution
if i have to generate thousand products into files,
because it means thousands xml files.

so i modify the code on this line :

Source xmlSource = new StreamSource(new URL("file:todo.xml").openStream());

into this line :

Source xmlSource = new StreamSource(new

it compiled successfully,
but it returns an error on running :
(i only paste a few first lines)

The markup in the document preceding the root element must be
well-formed.javax.xml.transform.TransformerException: The markup in the
document preceding the root element must be well-formed. void
ource, javax.xml.transform.Result, boolean) void
ource, javax.xml.transform.Result)

what could be wrong ?
i'm sure the xml is well formed,
because productXML.cfm? runs with no error on MSXML.
it works fine when i save the output of
as an .xml file, and I use the xml file to feed the code above.

please ...
i need some help.

thank you,

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message