Hi, forgive the complete newbie Q.
I am forced to use a buggy proprietry java servlet in an app I manage. It takes various requests, does some processing and responds in XML. Some requests generate multiple XML docs in the same response, such the following when the java code throws an exception:
This servlet is being connected to by clients outside my control and generates XML parsing errors in the browsers, java clents etc... eg. "XML Parsing Error: junk after document element" or "Only one top level element is allowed in an XML document". Nor do I have any control over what the servlet spits out. My workaround so far has been to disable the requests that generate the badly formed xml.
My question is... Is there a way to deal with this using XSL?
I am forced to use a buggy proprietry java servlet in an app I manage. It takes various requests, does some processing and responds in XML. Some requests generate multiple XML docs in the same response, such the following when the java code throws an exception:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<SomeResponse>
<SomeValue/>
</SomeResponse>
<?xml version="1.0" encoding="utf-8" ?>
<SomeException>
Exception text...
</SomeException>
My question is... Is there a way to deal with this using XSL?