Re: [fpc-pascal] TDomNode to text and/or document

2014-09-22 Thread Daniel Gaspary
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

Re: [fpc-pascal] TDomNode to text and/or document

2014-09-22 Thread Felipe Monteiro de Carvalho
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

Re: [fpc-pascal] TDomNode to text and/or document

2014-09-22 Thread Vojtěch Čihák
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