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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to