Delphi's units that implementation XML support (XmlIntf, XmlDoc) and FPC's units (DOM, XmlRead, XmlWrite) are roughly equivalent. Unfortunately the designers of FPC's didn't try to maintain Delphi compatibility in the naming of methods and properties and in how they're used.
The fpc xml units were written in 1999-2000, Delphi 6 (released in 2002) was the first version to have XmlIntf.
It is hard to catch up with Delphi if they invent their own interfaces.
Actually, Delphi 6 was released in May, 2001. And FPC's DOM is based on Nov. 2000 DOM spec.
FPC's XML units have been worked on quite a bit since then. Actually, by adding a few methods and properties it would probably be possible to have a compatibility/wrapper unit that supports both Delphi and FPC. For example, with FPC declare this:
IXMLDocument = TXMLDocument;
IXMLNode = TDOMNode;
Now at least those classes can be instantiated the same as Delphi. Etc.