[xsd-users] How to laod a XSD generated class
Adrian Stern
adrian.stern at screenfood.com
Tue Apr 16 08:31:10 EDT 2013
Hey Boris
Thanks. I did try this a few minutes back.
When doing this, I get a SIGABRT emmediately.
#include <QCoreApplication>
#include <QDebug>
#include "test.h"
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
auto_ptr<special_smil> s = special_smil_("/tmp/test.xml");
return a.exec();
}
Should I map the parsing functions somehow?
Freundliche Grüsse / Best Regards / Meilleures salutations
Adrian Stern
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: 16 April 2013 14:25
To: Adrian Stern
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] How to laod a XSD generated class
Hi Adrian,
Adrian Stern <adrian.stern at screenfood.com> writes:
> The root element is called special-smil. From this a class named
> special_smil was generated.
>
> [...]
>
> auto_ptr<special_smil> c = special_smil ("c.xml");
If the root type and root element have the same name, then XSD appends an underscore to the parsing/serialization functions (it is a pain in C++ to have both a type and a function with the same name).
So try something like this:
auto_ptr<special_smil> c = special_smil_ ("c.xml");
Boris
Diese E-Mail und ihre Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail inklusive Anhänge. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der Inhalte dieser Mail ist nicht gestattet.
This e-mail and any attachments may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail including the attachments. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the xsd-users
mailing list