Assembla home | Assembla project page
 

SimpleXML Library for D Programming Language

SimpleXML Library for D Programming Language is a very simple XML library for read-only purpose inspired by PHP's SimpleXML library.

If your XML file you are handling is extrem small and you just want a quick access to them, then SimpleXML Library may be a good choice because it provide you a very friendly way to access/travesal your XML tree structure.

Once you load your XML file using SimpleXML library, then you could access all your XML node just like you are accessing an associative array.

Feature

  • Very Very simple API and easy to use.
  • No library dependency, what you only need are a D Compiler with Tango runtime library.

Example

Please see Code Examples. It shows how could you use this library accessing XML file easily and painless.

API Document

You may download the SimpleXML API document here.

Requirement

You will need the follwing things to use SimpleXML Library for D Programming Language.

  • A D 1.0 Programming Language compiler. (Both DMD and GDC should work)
  • Tango runtime library.
  • DSSS (Optional, but strongly recommanded)

Download

You may donwnload an .zip arhive, or browse svn repository.

Installtion

This section shows you how could you install SimpleXML for D Programming Language using DSSS. It is also possbile build and install it without dsss but not recommanded and supported.

  • Download SimpleXML v.0.0.1 archive.
  • Extract it.
  • Build SimpleXML library
    $ cd SimpleXML
    $ dsss build
    
  • Install SimpleXML Library
    $ dsss install
    
  • Have Fun! Now you could import simpleXML.XMLNode to use this library.
    import simpleXML.XMLNode;
    void main ()
    {
        XMLNode!(char) root = XMLNode!(char).loadFile ("test.xml");
    }
    

Discuss / Fourm

You may leave message or disscuss SimpleXML for D Programming Language here, no registraion needed for posting messages.

License

The SimpleXML Library for D Programming Language is licensed under GNU GPL v3.

http://lh4.ggpht.com/brianhsu.hsu/SOcAvdbHDWI/AAAAAAAAE1s/sqK1_WVS_sw/s144/GPL3.jpg)