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
root node) and append children there.   Vojtěch  __ Od: Felipe Monteiro de Carvalho Komu: "FPC-Pascal users discussions" Datum: 22.09.2014 12:38 Předmět: [fpc-pascal] TDomNode to text and/or document Hello, I have a TDomN

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

2014-09-22 Thread Felipe Monteiro de Carvalho
Hello, I have a TDomNode (laz2_dom, but I guess it should be the same for all implementations). Is it possible to get a TXMLDocument from it? I tried: lDoc := TXMLDocument.Create; try lDoc.AppendChild(ANode); but it crashes =( Is it possible to get the full text of this node? something