users@jaxb.java.net

Detect errors in xml files

From: mimoune <lhafi_at_yahoo.fr>
Date: Fri, 9 Jan 2009 03:37:50 -0800 (PST)

Hi,

i need to get data from xml, my problem is that i need to know the xml file
errors (like elements missing or data type) to report the errors to other
users..

what i was trying to do is unmarshal the xml file and with get methods to
check if i have errors with try catch, bt i don't get any errors..

example

        try{
        double valor = getInvoiceSeriesCode();
         } catch(Exception e){
            error = true;
            e.printStackTrace();
        }

but that way i have no message erros..

some help? and sorry for my english
-- 
View this message in context: http://www.nabble.com/Detect-errors-in-xml-files-tp21370693p21370693.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.