[fpc-pascal] XML Iteration

Marco van de Voort marcov at stack.nl
Tue Apr 27 21:54:12 CEST 2010


In our previous episode, Lee Jenkins said:
> This isn't still true for latter version of FPC like 2.4.1, right?
> 
> http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes
> 
> "A quick note on navigating the DOM tree: When you need to access nodes in 
> sequence, it is best to use FirstChild and NextSibling properties (to iterate 
> forward), or LastChild and PreviousSibling  (to iterate backward). For random 
> access it is possible to use ChildNodes  or GetElementsByTagName methods, but 
> these will create a TDOMNodeList object which eventually must be freed. This 
> differs from other DOM implementations like MSXML, because FCL implementation is 
> object-based, not interface-based. "
> 
> I think I read that had been "fixed".

Most, if not all trunk XML fixes have been merged to 2.4.1. And there were
a lot of them, thanks to Sergei.



More information about the fpc-pascal mailing list