On 5/25/05, Vijayanand, M <[EMAIL PROTECTED]> wrote:
> 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.
I'm confused about you mean by comparing the marshalled XML to the the
XSD? The only thing I can think that would relate to 'comparing' the
these two artifacts is the validation of the marshalled XML against an
XSD and I've introduced the method that controls that.
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]
-------------------------------------------------