I'm not sure why it's happening. What is the error message you are getting.

To handle errors in validation, I do something with XmlOptions and the
error listener.
List errors = new LinkedList();
XmlOptions xo //...
xo.setErrorListener(errors);
Document.Factory.parse(instance, xo);
if errors.size() > 0
   /do something with the errors.

Best of luck
-jacobd
====================
sent from my nokia 9500

On 11/16/07, Steven Crosley <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm curious as to why this is happening and if it's possible to turn
> it off.  I'm not really sure the best way to explain what is going on.
>
> When I make a call to my webservice and load into my
> Document.Factory.parse method, if the xml data is valid it will load
> no problem.
>
> Later in the day, when the xml data is not valid, I'll get an error in
> my catalina.out log that the data is not valid, but instead of
> displaying no data, it instead displays the data from the last
> successful call, so it appears that the data has loaded, but just
> hasn't been updated.  What I would like it to do instead is for it to
> handle the failure.  The code looks something like this for generating
> the array of xml elements:
>
>                       bkDoc = BooksDocument.Factory.parse(url);
>                       books = bkDoc.getBooks();
>                       Book[] book = books.getBookArray();
>
> Thanks,
> Steven
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to