The Artima Developer Community
Sponsored Link

C++ Community News Forum
Code Synthesis has Released XSD 2.1.1 - XML Data Binding Compiler for C++

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Boris Kolpackov

Posts: 14
Nickname: boris
Registered: May, 2006

Code Synthesis has Released XSD 2.1.1 - XML Data Binding Compiler for C++ Posted: May 27, 2006 12:35 PM
Reply to this message Reply
Summary
XSD is an open-source, cross-platform W3C XML Schema to C++ translator. Provided with a schema, it generates C++ classes that represent the given vocabulary as well as parsing and serialization code. You can then access the data stored in XML using types and functions that semantically correspond to your domain instead of dealing with DOM or SAX.
Advertisement

A code snippet will illustrate the idea best:

<contact>
  <name>John Doe</name>
  <email>j@doe.com</email>
  <phone>555 12345</phone>
</contact>
auto_ptr<Contact> c = contact ("c.xml");
cout << c->name () << ", "
        << c->email () << ", "
        << c->phone () << endl;

XSD supports both in-memory and event-driven, stream-oriented processing models by implementing two C++ mappings: C++/Tree and C++/Parser. The C++/Tree mapping represents the information stored in XML instance documents as a tree-like, in-memory data structure. The C++/Parser mapping generates parser templates for data types defined in XML Schema. Using these parser templates you can build your own in-memory representations or perform immediate processing of XML instance documents.

XSD is available on GNU/Linux, HP-UX, Mac OS X, Solaris, and Windows. Supported C++ compilers include: GNU g++, HP aCC, Intel C++, Sun C++, and MS Visual C++.

More information, source code as well as precompiled binaries for all supported platforms are available from http://codesynthesis.com/products/xsd/

Topic: Open-RJ 1.5.1 released Previous Topic   Next Topic Topic: STLSoft 1.9 beta 6 released, incorporating Pablo Aguilar's ToolHelp library

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use