On Mon, Sep 22, 2014 at 8:21 AM, Felipe Monteiro de Carvalho
wrote:
> 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 at
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
Hi,
this is working code:
...
if not assigned(XMLDoc) then XMLDoc:=TXMLDocument.Create;
with XMLDoc do
begin
if not assigned(DocumentElement) then
begin
aNode:=CreateElement(cRoot);
AppendChild(aNode);
end;
if ASchemeNode='' then AScheme