[Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

Anthony Walter sysrpl at gmail.com
Thu Sep 21 12:32:14 CEST 2017


Marcos,

What and where are James.Data, James.Data.Clss?

Have you seen my XML interface at this url?

https://github.com/sysrpl/Cross.Codebot/blob/master/source/codebot.text.xml.pas

It might be helpful to study and/or consider. Example:

var
  D: IDocument;
  N: INode;
  F: IFiler;
begin
  D := CreateDocument;
  N := D.Force('config/settings');
  F := N.Filer;
  F.WriteStr('name', 'Marcos')
  F.WriteInt('@luckyNumber', 7);
  WriteLn(D.Text);
  D.Beautify;
  WriteLn(D.Text);
end;

Output:

<?xml version="1.0" encoding="UTF-8"?><config><settings
luckyNumber="7"><name>Marcos</name></settings></config>

<?xml version="1.0" encoding="UTF-8"?>
<config>
  <settings luckyNumber="7">
    <name>Marcos</name>
  </settings>
</config>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170921/8e47f095/attachment.html>


More information about the Lazarus mailing list