[xsd-users] RE: Problem during compilation of generated files

De, Pradipta pde at seic.com
Mon Oct 24 10:32:21 EDT 2005


Thanks a lot Boris.....that is working perfectly.....

Great........

Regards,
Pradipta De 
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Monday, October 24, 2005 9:57 AM
To: De, Pradipta
Cc: xsd-users at codesynthesis.com
Subject: Re: Problem during compilation of generated files

Pradipta,

De, Pradipta <pde at seic.com> writes:

>   map["lib"].name = "/home1/xxxx/pradipta/parser_1.4/output_unparse";

This should be a namespace name which, from your schema above, seems to
be "http://www.vvv.com/xxxx".

xsd-generated code throws xml_schema::mapping exception which, since you
didn't handle it, leads in abort(). I suggest that you wrap your code
with the following try/catch statements:

try
{
  // Your code goes here.
}
catch (xml_schema::exception const& ex)
{
  cerr << ex.what () << endl;
}

This will give you an idea what's going. You can see the list of
exceptions
that the xsd-generated code throws in
libxsd/xsd/cxx/tree/exceptions.hxx.

hth,
-boris





More information about the xsd-users mailing list