[fpc-pascal] TDomNode to text and/or document
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Mon Sep 22 13:21:08 CEST 2014
Ummm, this doesn't seam to help much... but I eventually found googling.
The error is EDOMWrongDocument, which makes sense since I want to
insert a TDOMNode from another document ... so I have to first import
and then attach the node:
lDoc := TXMLDocument.Create;
try
lImportedNode := lDoc.ImportNode(ANode, True);
lDoc.AppendChild(lImportedNode);
By the way, whats the difference between TDOMNode and TDOMElement? Confusing...
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list