tags:

views:

1129

answers:

2

I`m using Delphi 2009 and want to operate some XML data. I heard that nativeXML is one of the most convenient ways to do it. so how can I install this library?

+3  A: 

Based on their web site, it sounds like you just download the .dcu file, put it in a convenient directory, and add that directory to your type library path (tools->options->library path).

After that, just add the unit to your uses clause and you should be good to go.

JosephStyons
If their site can be believed, they do not include Delphi 2009 DCUs (yet). D2007 DCUs won't work in D2009.
Craig Stuntz
As a customer who paid for it, you should be able to download the beta version for D2009 from the private forum.
Uwe Raabe
You are right... I forgot that D2007 and D2009 are not binary-compatible.
JosephStyons
+3  A: 

NativeXML doesn't claim to support Delphi 2009 just yet. [Edit: Apparently there is a 2009 beta available to paying customers.] The trial version does not, so it cannot work with Delphi 2009 until that version of Delphi is officially supported.

That said, using XML in Delphi for most purposes doesn't require third-party components. You have several options, depending upon what you're doing.

  1. The most straightforward is to use TXMLDocument. This lets you open an XML file or stream, and access nodes using a DOM.

  2. With the Enterprise version of Delphi, you get the XML data binding wizard. This generates strongly typed mapping classes for a certain XML schema. It's very convenient when you know exactly what the structure of the XML document you're parsing will be.

  3. A third option is the XML mapper, which allows you to read XML data to and from a TClientDataset.

Craig Stuntz
some internet-sources to be read how to use TXMLDocument? I tried but I can`t find the needed data(
chester89
I tried to use TXMLDocument.ChildNodes.Find(tagname)
chester89
This might help: http://www.drbob42.com/Kylix/BizSnap1.htm
Craig Stuntz