Henrik Nyh
10/15/2008 12:26:00 PM
On Wed, Oct 15, 2008 at 1:52 PM, Dan Webb <dbw@aber.ac.uk> wrote:
> I'm trying to create an XML file and I don't see any way with the
> builder methods to write the doc type down.
>
> <?xml version = "1.0" encoding = "UTF-8" standalone = "no"?>
> <!DOCTYPE questestinterop SYSTEM "ims_qtiasiv1p2.dtd">
>
> I can sucessfully using
> xml.instruct! :xml, :version => "1.0", :encoding => "UTF-8", :standalone
> => "no"
>
> to create the first line. But the DOCTYPE line is a mystery. Any ideas?
xml.declare! :DOCTYPE, :questestinterop, :SYSTEM, 'ims_qtiasiv1p2.dtd'
Got this from the README that ships with the gem.