Units needed? lazarus / 31-LCL ---------------------------------------------------------------------- kormoran · 2011-03-26 14:23 I'm beginning to learn lazarus, yet had played some time with Delphi years ago... First: I'm trying to read an XML file with DOM and LCL, but I don't know which units I need to put in the uses section. Can anyone help me with that? Second and more important: is there a (easy and) standard way to discover, generally speaking, which unit a function/type/object/component belongs to? Thanks ---------------------------------------------------------------------- circular · 2011-03-26 14:27 For the second question, use Ctrl-Click on any identifier to know where it comes from. This way you can also know if there is an ancestor method that has the same name. ---------------------------------------------------------------------- herux · 2011-03-26 14:46 You can read this http://wiki.lazarus.freepascal.org/XML_Tutorial for the first question ---------------------------------------------------------------------- kormoran · 2011-03-26 14:55 The XML_Tutorial was exactly where I started from... sadly, it does NOT state which units are needed. I partially solved the problem with circular's suggestion: TDOMNode and TXMLDocument come from DOM unit, but no clue is given for ReadXMLFile... maybe because it's a function and not a type? (edit) found... it's in XMLRead unit, found poking around in fpc directories ---------------------------------------------------------------------- T-bear · 2011-03-26 18:12 i think its XMLRead, XMLWrite abd DOM, that you will need. QuoteCurrently there is a set of units that provides support for XML on Free Pascal. These units are called "XMLRead", "XMLWrite" and "DOM" and they are part of the Free Component Library (FCL) from the Free Pascal Compiler. The FCL is already on the default search path for the compiler on Lazarus, so you only need to add the units to your uses clause in order to get XML support. The FCL is not documented currently (October / 2005), so this short tutorial aims at introducing XML access using those units.