DOMC

The Document Object Model (DOM) in c

Download

DOMC is a light weight implementation of the DOM in ANSI c as specified in the W3C Document Object Model Level 1, Level 2, and Level 2 Events recommendations.

The DOM is the W3C recommended way to manipulate XML and HTML documements as a tree of nodes. It is the more sophisticated but more memory constraining alternative to the SAX api. In the spirit of Expat and the community process I encourage users to contribute improvements and bug fixes although as cited in the the MIT License you are not obligated to do so. The codebase is small and should be highly portable however it has not been compiled on any platform other than Linux. I believe the only non-ANSI code in DOMC is the use of strdup which can be replaced with a simple #define. The Expat XML parser is included in the distribution and will enable DOMC to load and store documents however it is not required (you can easily supplement your own serialization functions).

Relevant Technical
Documentation

DOM Level 1
DOM Level 2
DOM Level 2 Events

API Documentation

API Notes
Browse The Source

News

domc-0.5.0 released
Tue Aug 28, 2001

The Document Object Model Level 2 Events recommendation has been implemented. There are no mutation events but the UIEvents structure is in place and it is my intention to add a KeyEvent module. The Makefile provided in the UNIX archive will also now build DOMC as a shared library (for Linux but it's a good start for other platforms). The Expat XML parser is included with a similar Makefile to built it too as a shared library.

domc-0.4.0 released
Sat Jul 28, 2001

There have been only minor bug fixes since 0.3 but the build process has been improved greatly.