[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Merging schemas

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Fri, 17 Aug 2007 20:29:03 +0200
To: Rich Adili <Rich.Adili@xata.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20070817182903.GB13474@karelia>
Re: Merging schemas

Hi Rich,

Rich Adili <Rich.Adili@xata.com> writes:

> <DataWrapperNode>&lt;DataNode&gt;yadyada&lt;/DataNode&gt;</DataWrapperNo
> de>
>
> I would like to run this thing through a code generator and what I need
> as output is code representing the union of the two. Does this problem
> have an elegant solution?

Most data binding tools (I assume that's what you mean by a code
generator) would allow you to extract the inner XML and parse/validate
it using the code generated for DataNode. If a data binding tool you
are using support customization, then you might be able to customize
the type generated for DataWrapperNode so that this parsing/validation
happens transparently to the user.


-Boris


-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
Received on Friday, 17 August 2007 18:32:45 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.