The text nodes contain the white space
between the tags. If you use
document.write_to_file("file.txt"); instead of document.write_to_file_formatted("file.txt"); no white space is added, and there are no text nodes. I don't think there is any documentation that explains the inheritance hierarchy. Actually I don't think there is much to explain. The inheritance hierarchy has no deeper meaning. It does not correspond to the structure of an xml document. I think it's mostly an attempt to group node types that have something in common. Kjell 2013-08-29 21:00, Pablo Madoery skrev:
|