When I wrote my answer, I must have
forgotten the last part of your question. (When is each node type
used?)
I don't think that's described very well anywhere. The descriptions in the reference documentation are extremely short. The tutorial (https://developer.gnome.org/libxml++-tutorial/stable/chapter-parsers.html) only shows the inheritance hierarchy (not fully updated) with no further explanation. Each leaf in the inheritance hierarchy corresponds to a value of enum xmlElementType in the underlying C package, libxml2, but that's also very briefly documented. You can probably get some feeling for the node types by experimenting with some of the example programs, e.g. https://git.gnome.org/browse/libxml++/tree/examples/dom_parser https://git.gnome.org/browse/libxml++/tree/examples/dom_parse_entities Kjell 2013-08-31 18:40, Pablo Madoery skrev:
|