0

Is current release of boost 1.49.0 have any library, to parse html/xml documents. I know that pTree could be used for xml parsing but I am looking for sth more complete. Thanks.

AMCoded
  • 1,374
  • 2
  • 24
  • 39
  • There is [this answer](http://stackoverflow.com/questions/1042855/boost-and-xml-c) to a similar question. – jxh Jun 19 '12 at 04:50

1 Answers1

0

Boost::Spirit it's that you looking for.

sruu
  • 1
  • 3
    No, it’s not. Building your own XML parser, let alone a fault-tolerant HTML parser, is far from trivial (one word: encoding!). – Konrad Rudolph Jun 19 '12 at 08:21
  • I agree it isn't trivial, but that library make it possible (Spirit.Qi let you deal with encoding) – sruu Jun 19 '12 at 08:32
  • 2
    You *fundamentally* underestimate the required effort. Notably, Spirit.Qi won’t help you deal with the encoding issue, since you first need to *recognise* the used encoding. – Konrad Rudolph Jun 19 '12 at 08:34
  • I could not found any example on the web could you please give some example parsing html or xml with boost::spirit – AMCoded Jun 19 '12 at 10:26
  • Check boost example, there is full xml parser sample – sruu Jun 19 '12 at 18:50