From gok at aerometric-ak.com Mon Feb 11 17:22:33 2008
From: gok at aerometric-ak.com (Gennady Khokhorin)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] vc8 + expat 2.0.1 compilation errors
Message-ID: <3054411AF4728548AD6D7137190D56B30C4760@admin1.aeromap.com>
Hello, all.
Got compilation errors for hello parser example using latest
Codesynthesis XSD:
Error 1 error C2061: syntax error : identifier 'atts'
c:\program files\codesynthesis xsd
3.1\include\xsd\cxx\parser\expat\elements.txx 579
Error 2 error C2659: '+=' : function as left operand
c:\program files\codesynthesis xsd
3.1\include\xsd\cxx\parser\expat\elements.txx 580
Error 3 error C2664: 'xsd::cxx::parser::expat::bits::split_name'
: cannot convert parameter 1 from 'const XML_Char **(void)' to 'const
XML_Char *' c:\program files\codesynthesis xsd
3.1\include\xsd\cxx\parser\expat\elements.txx 582
Error 4 error C2296: '+' : illegal, left operand has type 'const
XML_Char **(__cdecl *)(void)' c:\program files\codesynthesis xsd
3.1\include\xsd\cxx\parser\expat\elements.txx 598
Any idea how to fix it, please.
Gennady
From gok at aerometric-ak.com Mon Feb 11 20:37:08 2008
From: gok at aerometric-ak.com (Gennady Khokhorin)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] how to insert/remove elements?
Message-ID: <3054411AF4728548AD6D7137190D56B30C4761@admin1.aeromap.com>
I'm implementing an xml editor. Have xml template on input and need to
add/edit/remove some elements and store the results.
Is Tree generated code is appropriate to approach this task? Which
xsd.exe options should be involved?
Thank you in advance for respond.
Gennady
From gok at aerometric-ak.com Tue Feb 12 16:22:55 2008
From: gok at aerometric-ak.com (Gennady Khokhorin)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] how to handle xsd:include?
Message-ID: <3054411AF4728548AD6D7137190D56B30C4764@admin1.aeromap.com>
Hello, all.
Have a complex metadata xsd with include statement:
main.xsd:
XSD.exe generated classes for main.xsd fine and in .hxx it includes
additional schemas like that:
#include "sect01.hxx"
As I'm guessing I have run now XSD.exe on sect01.xsd but got an errors
about types declared in main.xsd:
Unknown base type myType for type <...>
where myType declared in main.xsd like that:
main.xsd:
Does somebody knows how to handle included xsd and global types in
XSD.exe?
Thanks in advance for respond.
Gennady
From tdninh at tma.com.vn Thu Feb 14 08:10:09 2008
From: tdninh at tma.com.vn (Ninh Tran Dang)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] Parsing for the substitutionGroup
Message-ID: <002b01c86f0a$ed78c450$768010ac@tdninh>
Dear Support Team,
I currently use the XSDe as a part of my program. I have difficulty with
parsing the NETCONF schema using the substitutionGroup definition. Some
skeletons for elements like: "startup", "running". defined as members of
"config-name" substitutionGroup cannot be generated. Could you give me a
hand on answering it?
Beside, I found that the parser skeletons generated from the
substitutionGroup like: rpcOperation is the object-oriented relation. All
editConfigType_pskel or getConfigType_pskel skeletons are the subclasses of
the rpcOperationType_pskel class. And I have difficult to decide which
parser class should be added to the rpcType_pimpl parser when initializing
the parsing process. Because I don't know in advance whether the type of the
xml element is the get-config or edit-config element in order to assign the
corresponding parser implementation to the rpcOperationType_pimpl parser.
I also think about the workaround solution is to pre-process the xml
document to recognize the type of the element, but it seems that is not the
good choice. So have you got any experience on processing this case?
I really appreciate if you can figure out my concerns.
Thank You,
Ninh Tran.
From boris at codesynthesis.com Thu Feb 14 08:59:53 2008
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] Parsing for the substitutionGroup
In-Reply-To: <002b01c86f0a$ed78c450$768010ac@tdninh>
References: <002b01c86f0a$ed78c450$768010ac@tdninh>
Message-ID: <20080214135953.GD1502@karelia>
Hi Ninh Tran,
Ninh Tran Dang writes:
> I currently use the XSDe as a part of my program. I have difficulty with
> parsing the NETCONF schema using the substitutionGroup definition.
XML Schema polymorphism (xsi:type and substitution groups) are not
yet supported in XSD/e though we are planning to add this support
in the next release which is scheduled for the end of April.
Another alternative would be to use XSD instead of XSD/e. The
C++/Parser mapping in XSD supports polymorphism, see Section
5.4, "Support for Polymorphism" in the C++/Parser Getting
Started Guide:
http://codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/#5.4
Yet another alternative would be for us to implement support for
polymorphism in XSD/e and provide you with a custom binary before
the official release (this shouldn't take more than a few weeks).
This option is only available on the commercial basis with a
proprietary license or priority support contract for XSD/e.
Boris
From ROBERT.H.CANTAVE at saic.com Fri Feb 15 13:05:21 2008
From: ROBERT.H.CANTAVE at saic.com (Cantave, Robert H.)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] compiler error
Message-ID: <9CE060225CD128408F0B549B0A6B26BC0E032EC5@0015-its-exmb01.us.saic.com>
I downloaded and installed the latest version. While compiling the
hello example I get the following error:
$ xsd cxx-parser hello.xsd
Can only generate one of classes or datasets
From boris at codesynthesis.com Fri Feb 15 13:51:51 2008
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Tue Jul 1 03:37:21 2008
Subject: [xsde-users] compiler error
In-Reply-To: <9CE060225CD128408F0B549B0A6B26BC0E032EC5@0015-its-exmb01.us.saic.com>
References: <9CE060225CD128408F0B549B0A6B26BC0E032EC5@0015-its-exmb01.us.saic.com>
Message-ID: <20080215185151.GA9707@karelia>
Hi Robert,
Cantave, Robert H. writes:
> I downloaded and installed the latest version. While compiling the
> hello example I get the following error:
>
> $ xsd cxx-parser hello.xsd
>
> Can only generate one of classes or datasets
First of all, if you installed XSD/e (this mailing list is for XSD/e[1])
then the command line should be:
$ xsde cxx-parser hello.xsd
If you installed XSD, then you should send questions to the
xsd-users@codesynthesis.com mailing list instead. As for the error,
the XSD compiler does not have an error message with this wording
so you are probably executing some other binary with the name
'xsd'. You can check which one it is (assuming you are on Linux/Unix)
using the which command:
$ which xsd
[1] http://www.codesynthesis.com/products/xsde/
Boris