xsl-list
[Top] [All Lists]

[xsl] How to recover/continue from XML Transformation exception?

2010-11-17 01:45:06
Hi All,
 
I have an Java application that continually transforms a single XML file at a 
time which would fail every now and then, possibly due to corrupted data (not 
an 
issue). However, the transformation process below using Saxon 9.1 would crashed 
completely:
     Transformer transformer = transformerFactory.newTransformer(new 
StreamSource(StyleSheet));
    JDOMSource areaSource = new JDOMSource(OriginaljdomXMLDocument);
    JDOMResult areaResult = new JDOMResult();
    transformer.transform(source, result);
 As a result, is it possible to recover/continue from ad-hoc XML 
transformation? 
If so, how could this be done?
 
Thanks a lot,
Jack


      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>