I use Delphi 2010 and I have a Firebird 2.5 Database and a table as:
Code: Select all
CREATE TABLE DOC_FE
(
ID Integer NOT NULL,
XML Blob sub_type 1,
CONSTRAINT DOC_FE_PK PRIMARY KEY (ID)
);
Code: Select all
<?xml version="1.0" encoding="Windows-1252" standalone="no"?>
Code: Select all
DOC_FExml.SaveToFile(AFileName);
Code: Select all
< ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " W i n d o w s - 1 2 5 2 " s t a n d a l o n e = " n o " ? >
Code: Select all
Xml := TStringList.Create;
Xml.Text := DOC_FEXML.AsString;
Xml.SaveToFile(AFileName);
Code: Select all
<?xml version="1.0" encoding="Windows-1252" standalone="no"?>
Thanks