Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Insert Doctype in XML (http://www.go4expert.com/forums/insert-doctype-xml-t27920/)

Francis Walsingham 29Feb2012 20:59

Insert Doctype in XML
I have an XML file containing multiple tables which I need saving as separate files. I can use a parser to extract each table and printToFile but I need to insert a DOCTYPE declaration in each one because the receiving system requires one. Does anyone know how? I've tried various parser->methods without luck and even tried reading lines sequentially and writing them out with my insert in the correct place but the result doesn't appear to be XML. Any help gratefully received

All times are GMT +5.5. The time now is 12:15.