wwtxt

wwtxt library is a very minimalistic library containing just the required parsers for XML and CSS data.
Download

wwtxt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Kasper Peeters
  • Publisher web site:
  • http://www.aei.mpg.de/~peekas/tree/

wwtxt Tags


wwtxt Description

wwtxt library is a very minimalistic library containing just the required parsers for XML and CSS data. Parsing XML and CSS data is rather simple, but most libraries that aim for this simple goal are bloated with a whole lot of other irrelevant additions.The wwtxt library is a very minimalistic library containing just the required parsers (and therefore considerably smaller than for instance libxml; by a factor 40 or so). wwtxt library relies on tree.hh for the storage classes.This library only parses well-formed XML and CSS; it throws an exception when it is fed other input. If you want to feed it HTML or any of the other stuff that people call HTML, run it through the tidy tool, with the optionstidy --add-xml-decl yes --add-xml-space yes --output-xml yes --force-output yes --show-warnings no --quiet yes --show-errors 0(which you can put in a configuration file too, see the tidy documentation).Sample uses Reading in an XML document, walking through the tree and converting a tree back to an XML document are all extremely simple. To read an XML document from std::cin and write it back to std::cout with nicely indented output, all that is needed is #include < iostream >#include < wwtxt/xml.hh >int main(int, char **) { xml::document doc; xml::parser parser(doc); while(std::cin) std::cin >> parser; std::cout Requirements: · My C helper library proj (which takes care of building shared libraries and provides timers). · My template tree class tree.hh · A decent C compiler; gcc 2.95.3 and higher will do.


wwtxt Related Software