Re: [pygccxml-development] Problems with reading XML files directly
Brought to you by:
mbaas,
roman_yakovenko
From: Brian O. <bob...@ya...> - 2006-10-22 18:41:31
|
I have a c++ class for reading and parsing xml data... Interested? --- Roman Yakovenko <rom...@gm...> wrote: > On 10/22/06, Matthias Baas <ba...@ir...> wrote: > > Roman Yakovenko wrote: > > >> I just noticed that when I read a XML file > directly (by using > > >> create_gccxml_fc()), Py++ creates an include > directive where it tries to > > >> include the XML file (which, of course, won't > compile). > > > > > > What reader do you use? project_reader_t or > source_reader_t? > > > > I'm using the project_reader_t class. But I found > the mistake, it was my > > fault, sorry. I forgot that I was passing a list > to creator_t.create(). > > By the way, in create() there's the following 'if' > statement right in > > the beginning: > > > > if not decl_headers: > > self._create_includes() > > > > Could the expression be changed from "not > decl_headers" to "decl_headers > > is None"? Because when I pass an empty list to > disable the creation of > > include files the expression "not decl_headers" is > True and the includes > > get generated anyway. > > Go ahead :-) > > -- > Roman Yakovenko > C++ Python language binding > http://www.language-binding.net/ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pygccxml-development mailing list > pyg...@li... > https://lists.sourceforge.net/lists/listinfo/pygccxml-development > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |