#18 socketstreambuf + xml_parser

closed
Davis
5
2007-03-22
2007-03-21
No

I would like to read in an xml file directly from the web. But right now I need to change it to an istream before I can pass it to the xmlparser.
Is it possible to change this behaviour so it accepts (also) a sockstreambuf?

Thanks!

Discussion

  • Davis
    Davis
    2007-03-21

    Logged In: YES
    user_id=1166290
    Originator: NO

    You should be able to do that by saying something like:
    my_xml_parser.parse(istream(&my_sockstreambuf));

    Or am I missing something?

    -Davis

     
  • Davis
    Davis
    2007-03-21

    • status: open --> pending
     
  • Logged In: YES
    user_id=569271
    Originator: YES

    like you say is a "nonstandard extension", but it works if I make variables from it.

    Thanks!

     
    • status: pending --> closed