Forum OpenACS Development: validating XML with tdom and tnc

Hello,

I'm trying to validate a XML file with a DTD.

tdom has no validator by itself, but you can use an extension of expat to validate documents, nodes, etc. Syntax is:

package require tdom
package require tnc
set parser [expat]
tnc $parser enable
validateDocument domDocument ?varName?

The problem i have found is that i got a

"invalid command name 'tnc'"

I guess i have to install the required 'tnc' extension, but i'm not sure which is the best way to do it.

Anyone can help me?

Collapse
Posted by Torben Brosten on
newer versions of tDOM include tnc. What version are you using?
Collapse
Posted by Luis de la Fuente on
Sure, it seems to be the problem.

I'm using version 0.7.8 of tdom. Latest versions of the package may work, but i'm using de newest debian package.