You've already forked lazarus-ccr
Object Pascal "record" serialization ( first commit! )
TTest_TIntfPoolItem TTest_TSimpleItemFactory TTest_XmlRpcFormatterExceptionBlock TTest_SoapFormatterExceptionBlock Record serialization test git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@243 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -24,7 +24,7 @@ type
|
||||
|
||||
function CreateDoc() : TXMLDocument ;
|
||||
procedure WriteXMLFile(ADoc : TXMLDocument; AStream : TStream);
|
||||
procedure ReadXMLFile(ADoc : TXMLDocument; AStream : TStream);
|
||||
procedure ReadXMLFile(out ADoc : TXMLDocument; AStream : TStream);
|
||||
function NodeToBuffer(ANode : TDOMNode):string ;
|
||||
|
||||
function FilterList(const ALIst : IDOMNodeList; const ANodeName : widestring):IDOMNodeList ;
|
||||
@ -55,8 +55,9 @@ begin
|
||||
(ADoc as IDOMPersist).saveToStream(AStream);
|
||||
end;
|
||||
|
||||
procedure ReadXMLFile(ADoc : TXMLDocument; AStream : TStream);
|
||||
procedure ReadXMLFile(out ADoc : TXMLDocument; AStream : TStream);
|
||||
begin
|
||||
ADoc := CreateDoc();
|
||||
(ADoc as IDOMPersist).loadFromStream(AStream);
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user