The Simple Declarative Language provides an easy way to describe lists, maps, and trees of typed data in a compact, easy to read representation. The simple and intuitive API allows you to read, write, and access all the datastructures using a single class. For property files, configuration files, logs, and simple serialization requirements, SDL provides a compelling alternative to XML and Properties files. Implementations are available for Java and .NET; a port to C++ is in the works, with more languages on the way.
- Downloads (Source, Binaries, Docs, Subversion URL)
- Language Guide
- Tool Support
- Ruby Docs
- Projects Using SDL
30 Second Intro
An SDL Tag can be as simple as a name and a value. Tags can also have value lists, attributes, and children.
Simple Example: A tag with a value
A tag with a value list
A tag with a value list and attributes
A tag with a value list, attributes, and children.
The same structure using anonymous tags (which automatically take the name "content")
If the above example is stored in a file called "/myfiles/people.sdl", the following Java code will fetch Akiko's hobbies.
The SDL class (SDLUtil in C#) offers a number of useful convenience methods.
The beef of the API is in the Tag and SDL classes. In fact, you can parse, modify and write out SDL code using nothing but the Tag class.