Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to create an xml doc from flat file format..based on a certain STM DTD..please suggest what would be the best possible way to go aout it..i am trying out the set_gi and mark methods of XML::Twig, but is there any place I can get some small sample code..just to get the hang of it..the document that i am trying to process is a scientific publication, with elements such as "Author name", "Author Group", "Bibliography" etc

Replies are listed 'Best First'.
Re: Creating XML from text
by jeffa (Bishop) on Oct 17, 2003 at 15:32 UTC
Re: Creating XML from text
by inman (Curate) on Oct 17, 2003 at 16:25 UTC
    You could try using XML::Writer. This works just fine if you are doing a conversion of some data (e.g. from a text file) into XML and all that you are really after is help with the formatting, escaping etc.

    As mentioned in the previous posts, an example of the data that you are trying to convert would help us to help you!

    inman

Re: Creating XML from text
by mirod (Canon) on Oct 17, 2003 at 15:45 UTC

    If you post a more complete description of your problem we might be able to help. As it is, it is quite hard to help you with that little information.