[xsd-users] How to create XML with mappings for substitution groups
with same type using cxx-tree
Alex Jakes
Alex.Jakes at acis.uk.com
Mon Aug 17 06:23:21 EDT 2009
Hello,
I have a problem that you have already partly addressed in a posting by Ninh Tran Dang called "[xsd-users] Parsing for the substitutionGroup". http://www.codesynthesis.com/pipermail/xsd-users/2008-March/001543.html
I have a large schema that uses the technique of using substitution groups with the same type but with different element names. Essentially using the element name to encode information about the type instead of using the type to do that and I am also using cxx-tree. I agree that this is a bit of a silly way to do things but I am stuck with it and have to cope with it.
Your reply to Ninh suggested using DOM directly to parse the document as in the multiroot example. I have done this and it works for parsing such files. The problem comes when I want to generate XML using the XSD generated code. I would normally just build the data structure I want in memory and then serialise it. Do you have any suggestions for how I might do this?
Thanks,
Alex.
This email and the information it contains are confidential and may be privileged, if you have received this email in error please notify us immediately. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore ACIS does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. If you suspect the message may have been intercepted or amended, please call the sender. Registered office: ACIS House, 168 Cowley Road, Cambridge, CB4 0DL. Registered in England and Wales, Company Number 3039051
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the xsd-users
mailing list