Hi, Yes, I think that you are correct, it has no programmatic API (as far as I know). However, it does have a manual code generator supporting Xerces C++ so my thinking was that you could manually create the Xerces C++ compatible source code (C++ classes I might imagine?) from the XML-Spy/Schemas, then build the application around these with the Xerces libraries? The only drawback would be the lack of automated synch with schema updates.
I just wonder how Xerces absorbs these XML-SPY created software? As mentioned, I am supposing that they would be C++ source classes, each one representing a single schema and that these could be instantiated into DOM instances, allowing the user to serialize them to XML files. However, I am still using castor/java as my 'mind model' here. Would you have anymore insight? (even if it was speculation). Regards Philip -----Original Message----- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 10:35 AM To: xerces-c-dev@xml.apache.org Subject: Re: Generating and Serializing XML Docs using Xerces Hi, I have not used the enterprise edition, but my understanding was that it is still a desktop tool for the creation of XML docs and schemas. I did not think it had a programmatic API for you to integrate with. If it does, I would be interested in hearing about it. Cheers, Gareth [EMAIL PROTECTED] wrote: > Hi, > > Many thanks for this. I will investigate. > > However, do you happen to know if the Xerces support in XML Spy > Enterprise 2005, together with the Xerces parser itself, equates to > the 'Castor' solution? > > Regards > Philip > -----Original Message----- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 03, 2005 1:37 AM > To: xerces-c-dev@xml.apache.org > Subject: Re: Generating and Serializing XML Docs using Xerces > > > Hi, > > [EMAIL PROTECTED] wrote: > >>I have downloaded the Xerces C++ code and successfully compiled the >>libraries, but what now? How do I create my schema compliant XML >>files? > > > You cannot in the same way as you use castor, but you can create it at > run time. Take a look at CreateDOMDocument for an example. At the moment > > you would have to serialize it to memory and then re parse it to check > validity. There is a DOM Level 3 spec that covers the kind of validation > > at runtime you want but we have not implemented it. > > > Cheers, > > Gareth > > > -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com --------------------------------------------------------------------- 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]