From: Derek F. <fo...@hu...> - 2002-09-06 09:06:59
|
I've asked this before on c.l.t. and someone (Steve?) replied, but I still can't make it work 'cos I'm a nugget. I want this: <?xml version="1.0"> <!DOCTYPE test SYSTEM "test.dtd"> <test /> and have the following code to do it: #!/bin/sh # \ exec tclsh8.3 "$0" "$@" package require xml package require dom set doc [::dom::DOMImplementation create] ::dom::DOMImplementation createDocumentType $doc "test" {} "test.dtd" ::dom::document createElement $doc "test" puts [::dom::DOMImplementation serialize $doc] which gives an error: "wrong number of arguments, should be: DOMImplementation createDocumentType name publicid systemid" Looking at the code in tclxml-2.0 and 2.2, I'm a bit suspicous that something's not right. Do the parameters for the call to CreateDocType from inside dom::tcl::DOMImplementation match up with what the routine's expecting to receive? I'm a bit out of my depth with that sort of Tcl code, so apologies if I'm casting aspersions. Can someone fix my code above so I can see exactly what I've got wrong? -- The past: Smart users in front of dumb terminals |