[xsd-users] help with xsd generation

Alex Rosenbaum Alex.Rosenbaum at thomsonreuters.com
Mon Jul 7 13:38:02 EDT 2008


Dear xsd-users
 
I am using CodeSynthesis xsd 3.1 with MS Visual Studio 8.0. I have
followed all available advice to generate c++ code from the attached xsd
file.
The command line was:
 
xsd.exe cxx-tree --generate-intellisense TibAppConfig.xsd
 
The code generation is successfull. When I try to instantiate the
generated classes from my xml (also attached) I am receiving errors as
below. 
 
The code that fails looks like this:
namespace Reuters_EcoWin_Falcon {

void TestConfigurationAPI()

{

try

{

std::auto_ptr<Falcon> ta(Falcon_("c:/dev/SimpleRepublisher.xml"));

}

catch (const xml_schema::exception& e)

{

std::cerr << e << std::endl;

}

I will truly appreciate any help with it.
 
Thank you
Alex
 
 
c:/dev/SimpleRepublisher.xml:4:63 error: Unknown element 'Falcon'
c:/dev/SimpleRepublisher.xml:4:63 error: Attribute 'xmlns' is not
declared for
lement 'Falcon'
c:/dev/SimpleRepublisher.xml:4:63 error: Attribute
'{http://www.w3.org/2000/xml
s/}xsi' is not declared for element 'Falcon'
c:/dev/SimpleRepublisher.xml:6:11 error: Unknown element 'Common'
c:/dev/SimpleRepublisher.xml:7:24 error: Unknown element
'TibAppEnvironment'
c:/dev/SimpleRepublisher.xml:8:16 error: Unknown element 'service'
c:/dev/SimpleRepublisher.xml:9:16 error: Unknown element 'network'
c:/dev/SimpleRepublisher.xml:11:10 error: Unknown element 'daemon'
c:/dev/SimpleRepublisher.xml:12:23 error: Unknown element
'subjectPrefix'
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:228:36 error: '\$' is not a valid character escape
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:154:62 error: SimpleType (
http://www.nlog-project.org/schemas/NLog.xsd:NLog
ayout) for attribute: file not found
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:228:36 error: '\$' is not a valid character escape
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:171:63 error: SimpleType (
http://www.nlog-project.org/schemas/NLog.xsd:NLog
ayout) for attribute: value not found
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:228:36 error: '\$' is not a valid character escape
http://nycsrrur1/urreq/rrurreq.dll?xsd=http://www.nlog-project.org/schem
as/NLog
xsd:198:67 error: SimpleType (
http://www.nlog-project.org/schemas/NLog.xsd:NLog
ayout) for attribute: layout not found
 
 
Alex Rozenbaum
Consultant


Thomson Reuters 

Phone: 646-223-5230


alex.rosenbaum at thomsonreuters.com
thomsonreuters.com


 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimpleRepublisher.xml
Type: text/xml
Size: 3262 bytes
Desc: SimpleRepublisher.xml
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20080707/ca5305c8/SimpleRepublisher.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TibAppConfig.xsd
Type: application/octet-stream
Size: 16680 bytes
Desc: TibAppConfig.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20080707/ca5305c8/TibAppConfig.obj


More information about the xsd-users mailing list