Recent

Author Topic: OXml - The next generation XML library for Pascal (Delphi, FPC, Lazarus)  (Read 5468 times)

noisy

  • New member
  • *
  • Posts: 7
OXml is the most versatile XML library in the Pascal world.

Supported compilers:
- Delphi (non-unicode): 6-2007
- Delphi (unicode) for Win32, Win64 and OSX: 2009+
- Delphi for ARC (iOS, Android): XE4+
- Lazarus for Win32, Win64, Linux, OSX: 1.0+
- corresponding C++Builder versions should be supported too (not tested though)

Main benefits:
- All on the target platform available single- and multi-byte codepages are automatically supported.
- True unicode support on all platforms and compilers (also for Delphi 6-2007).
- The XML parser is a standalone unit, making it possible to write different and user-defined XML interfaces.
- Extremely fast thanks to clever buffering.

Parsers included in OXml:
- Basic standalone XML reader and writer.
- DOM (W3C DOM Level 1.0 Specification).
- Sequential DOM parser
- SAX parser

sf.net url http://sourceforge.net/projects/oxml/

eny

  • Hero Member
  • *****
  • Posts: 1617
As interesting as it looks, pointers and pointer dereferencing should be a thing of the past:
Quote
If you use FPC/Lazarus in Delphi mode ({$MODE DELPHI}), the nodes get dereferenced too. But if you use FPC/Lazarus in default mode, you have to dereference it manually with the "^" operator: XML.DocumentElement^.AddChild('child');
« Last Edit: March 04, 2014, 05:01:38 pm by eny »
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 219
As interesting as it looks, pointers and pointer dereferencing should be a thing of the past:
Quote
If you use FPC/Lazarus in Delphi mode ({$MODE DELPHI}), the nodes get dereferenced too. But if you use FPC/Lazarus in default mode, you have to dereference it manually with the "^" operator: XML.DocumentElement^.AddChild('child');

For those who don't like pointers to records, there is OXmlCDOM.pas that is TObject-based. You have to count with some performance penalty though.

 

TinyPortal © 2005-2018