Hello,
I have generated my XML using the below method, the file stops half way.
The message in the XML states:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later. Not enough storage is
available to complete this operation.
I'm not sure where to start to debug the error.
<code>
public void generateXML(TimeSeries timeseries)
{
try
{
FileWriter out = new FileWriter("C:/file.xml");
Marshaller.marshal(timeseries, out);
out.close();
} catch (Exception e)
{
System.out.println("Exception: " + e.getMessage());
}
}
</code>
Changed the following settings in castor.properties to true by extracting
the library and creating another jar.
# True if all documents should be indented on output by default
#
org.exolab.castor.indent=true
# True if xml documents should be validated by the SAX Parser
#
org.exolab.castor.parser.validation=true
org.exolab.castor.parser.namespaces=true
# True if all documents should be validated by the marshalling framework
#
org.exolab.castor.marshalling.validation=true
Thanks all.
--
View this message in context:
http://old.nabble.com/Error-in-XML-file-generated-by-Castor-tp30928766p30928766.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email