Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Haugseth
Adding !DOCTYPE and processing instructions [ reply ]  
2009-10-19 15:21
I'm creating an XML document from scratch, and
outputting this using #to_s or #save. Now I need
to add a !DOCTYPE header above the root element,
and a couple of processing instructions <?foo ...>
as well. Is there any way to do this with LibXML for Ruby? I have looked around the documentation but
failed to find anything relevant.