Please stop posting HTML formatted messages to this mailing list.

Regards,
Emir



----- Original Message -----
From: "Vijayanand, M" <[EMAIL PROTECTED]>
Date: Thursday, May 26, 2005 7:47 am
Subject: RE: [castor-dev] How to compare Marshalled xml with existing xsd

> 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 Delivery India Center
> 
> Digital Park, II Floor, Software Block Dpd42 W-65
> 
> Off:   +91-80-26173065
> 
> Mobile: 9880061244
> 
> Email: [EMAIL PROTECTED] 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Bruce Snyder [EMAIL PROTECTED] 
> Sent: Thursday, May 26, 2005 10:54 AM
> To: [email protected]
> Subject: Re: [castor-dev] How to compare Marshalled xml with existing
> xsd
> 
> 
> 
> 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 marshall the java object to xml.
> 
> 
> 
> 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]
> 
> -------------------------------------------------
> 
> 
> 
> 



-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to