1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Insert Doctype in XML

Discussion in 'Perl' started by Francis Walsingham, Feb 29, 2012.

  1. Francis Walsingham

    Francis Walsingham New Member

    Joined:
    Feb 29, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page