Updating wrapper for Delphi 2009 and XDOM 4.1.6
So I finally got down to releasing the wrapper for XDOM 4.1.6 and Delphi 2009. There is also a compiler switch to use it on version 3.2, but the focus shifted to 4.1.x because of Delphi 2009.
Here is a summary of changes:
- Avoiding error when doing xpath on tree with PreserveWhitespace in effect.
- SelectNode and SelectNodes now return literal xpath query results (boolean, number, string) as TDomText/IDomText/IXmlNode. I like this tweak a lot, though if relying on it, your code will not work against MSXML, which gives an error.
- Added licence text for MPL 1.1.
- Changes for working in Delphi 2009 Tibúron (requires XDOM 4.1.6 or later).
- Renamed ox31 prefixes to ox4.
- Uses TXmlInputSource for XDOM v4 in loadxml() and loadFromStream().
And one known bug: When doing an XPath query of "/", TXMLDocument's DocumentElement gets wiped out, and in Delphi 6 it also gives a nasty error. I haven't located the bug, fixed it, or made a workaround yet. But I wanted to get the current stuff out now.
Download gtcXdomDom-20081111, install the package, and select "Open XML 4.1" as DOMVendor in TXMLDocument.gtcXdomDom-20081111.zip
(This 4.1 wrapper is a reworked version, originally based on Borland's 2.4 wrapper, so the Creative Commons licence on this blog does not apply to my wrapper. There is licence text at the start of the .pas file, similar to the XDOM licence.)