[xsd-users] Elements/attrs not recognized

Boris Kolpackov boris at codesynthesis.com
Fri Dec 12 08:13:47 EST 2008


Hi,

Homer J S <js.homer at yahoo.com> writes:

>       try
>         {
>           std::string str(_QueryIn); // XML in a string.
>           std::istringstream iss(str);
>           auto_ptr<obj_wells> h (wells (iss));
>         }
>       catch (const xml_schema::exception& e)
>         {
>           cerr << e << endl;
>         }
> 
> to parse this XML string:
> 
> '<wells xmlns="http://www.witsml.org/schemas/120" version="1.2.0">...
> 
> But all I got back are just errors. It look like the generated parser 
> did not recognize any of the elements/attributes, I must have missed
> something serious:

No, not too serious ;-). See Q2.1 in the C++/Tree Mapping FAQ:

http://wiki.codesynthesis.com/Tree/FAQ


Boris




More information about the xsd-users mailing list