xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Bogouchev" <ivan.bogouc...@gmail.com>
Subject Re: Error In Code (Sax Parsing)
Date Thu, 21 Dec 2006 16:07:37 GMT
Hello,


On 12/20/06, appleGuy <alx.curtis@gmail.com> wrote:[snip]
 ...

>
>                         else {
>                                 //Load into New Derived Variable for
> overloading & Safety
>                                 const char *XMLfile = token;
>
>                                 //Debug
>                                 cout << "Parsing: " << XMLfile << endl;
>
>                                 //ERROR WIPE -> NEEDS IMPLIMENTING
>
>                                 try {
>                                         parser->parse(XMLfile);



The argument to the parse method is the _path_ to the file you want to
parse, but looking at your code it seems to me that you expect it to be the
contents...

Try to removing the while loop and just call  parser->parse("xml_file.xml")
...

Hope it helps


-- 
Ivan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message