OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XML Schema --> C++

[ Lists Home | Date Index | Thread Index ]
  • From: "Jean Marc VANEL" <jean-marc_vanel@effix.fr>
  • To: xml-dev@ic.ac.uk, xml-dev-ig%PMDF%MHMAIL@mr.effix.fr, "tcs-infra" <tcs-infra@effix.fr>, "Madjid OUTENAH" <m_outenah@effix.fr>, s_durfort@mailhub.effix.fr, j_lolieux@mailhub.effix.fr, f_clerc@mailhub.effix.fr, thomas_moutel@effix.fr, d_asseline@effix.fr, guy_dauchet@effix.fr, "Sonia BILLINGS" <s_billings@effix.fr>
  • Date: Thu, 20 Jan 2000 10:42:38 +0100



Hello

I want to try to generate C++ class declarations from an XML Schema .

Something like:

<template select = '//type' >
  class <value-of select="@name"/> {
   <apply-templates/>
  };
</template>

<template select = '//element' >
  <value-of select="@type"/> <value-of select="@name"/> ;
</template>

Remarks:
- not yet tested
- as writen this would generate embeded classes
- ID's and IDREF's would map to void* and list<void*>
- same principle could be applied to Java etc
- it is desirable to also generate code to fill the C++ objects using DOM or SAX API, but it seems more difficult
- it's also possible (another project!) to parse C++ declarations and generate an XML Schema ; could a round-trip be possible ?



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS