[fpc-pascal] XML Iteration

Lee Jenkins lee at datatrakpos.com
Tue Apr 27 17:14:57 CEST 2010


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".

Thanks,

--
Warm Regards,

Lee




More information about the fpc-pascal mailing list