Hi Bruce, Iam expecting something like this try { Mapping
map = new Mapping(); map.loadMapping("ServiceMapping.xml"); File
file = new File("SERVICE_Response.xml"); Marshaller
marshaller = new Marshaller(writer); marshaller.setMapping(map); marshaller.marshal(Service); try{ marshaller.compareXML(file,"../xsd/service.xsd"); }catch(CompareXmlException
CXmlExp){} }catch(Exception ex){} // compare method as public void
compareXML(File xml,File xsd)throws XmlException { //
some code to compare the xml with xsd } I know that there is no
method like that,but still it will Useful if we have one.so that we can compare
at the time of running the code. Thanks & Regards, Vijayanand M HP Global Off: +91-80-26173065 Email: [EMAIL PROTECTED] -----Original Message----- On 5/25/05, Vijayanand, M <[EMAIL PROTECTED]> wrote: > How do I compare the Marshalled xml file with my existing xsd in
castor. > Is there any class to do . so that I can import the class and use
it > after I Vijayanand, If you need to validate the XML, this can be done by setting validation to true using the Marshaller.setValidation() method. Bruce -- perl -e 'print
unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' The Castor Project http://www.castor.org/ Apache Geronimo http://geronimo.apache.org/ ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- |