Forum OpenACS Development: Re: Heads Up: tDOM will replace nsxml

Collapse
Posted by Bart Teeuwisse on
I've replaced nsxml with tDOM on CVS HEAD. From now on the CVS HEAD requires tDOM instead of nsxml. tDOM is available from http://tdom.org.

Please follow the installation instructions included with tDOM for AOLserver 3.x EVEN when you are running AOLserver 4.x. As package require only works in AOLserver 4.x we'll have to go with the smallest common denominator.

Checkout irc-logger (http://cvs.openacs.org/cvs/openacs-4/contrib/packages/irc-logger) for an example of how to use tDOM in OpenACS.

/Bart

Collapse
Posted by Bart Teeuwisse on
Another advantage of tDOM over nsxml is that it processes XQL files that include a DOCTYPE. If your editor can use DTDs when editing XML files this might be of interest.

I've written a DTD for XQL files, which is available from http://www.thecodemill.biz/repository/xql.dtd. A write-up of how to use this DTD in Emacs is available from http://www.thecodemill.biz/publications/xql-dtd/.

/Bart

Collapse
Posted by Steve Manning on
Bart

Not wishing to belittle your hard work but a talk I attended recently suggested that in future we should be using XML Schemas in place of DTD's. http://www.w3.org/XML/Schema

- Steve

Collapse
Posted by Bart Teeuwisse on
Steve,

I couldn't agree more. However, I do know that Emacs (and many other editor) can parse DTDs. Support for XML Schemas is spotty at this time.

When the time is right we can convert DTDs into XML Schemas using tools such as http://www.w3.org/2000/04/schema_hack/.

/Bart