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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice