Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: text to xml conversion

by CountZero (Bishop)
on May 24, 2011 at 06:48 UTC ( [id://906429]=note: print w/replies, xml ) Need Help??


in reply to text to xml conversion

There is an infinite number of ways you can transfer these data into XML. It will all depend on the format of the XML-file and for that you need a DTD-file (Document_Type_Definition-file).

But why should you need to go through an XML file to put your data into a hash?

If you tell us how the hash should look like, it is quite certain someone will find a way to do it directly.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: text to xml conversion
by dHarry (Abbot) on May 24, 2011 at 08:40 UTC

    for that you need a DTD-file

    It's way better to use XMLSchema. In fact it seems the OP wants to model datatypes and how do you want to do that with a DTD? Unless you want to go down the DT4DTD road. DTDs are considered legacy nowadays. Of course it's all academic because as you indicate yourself there is no case for using XML:)

    Cheers

    Harry

      DTDs are considered legacy nowadays

      Hehe, I am legacy myself ...

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://906429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found