Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: XML & data structure parsing fun (XML::Simple ??)

by Cody Pendant (Prior)
on Jun 05, 2008 at 07:05 UTC ( #690347=note: print w/replies, xml ) Need Help??

in reply to XML & data structure parsing fun (XML::Simple ??)

Not very helpful, but I feel compelled to say that there's really no such thing as "XML which is not well formed". If it's not well formed, it's not XML you can successfully handle with an XML Parser.

And you should probably consider using XML::XSLT because XSLT is the specific language created to handle XML. It's a language only a mother could love, but it's designed for the purpose. Not that perl isn't a perfectly good tool for this job, but XSLT is a tool designed to do nothing else but this job.

Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
  • Comment on Re: XML & data structure parsing fun (XML::Simple ??)

Replies are listed 'Best First'.
Re^2: XML & data structure parsing fun (XML::Simple ??)
by weismat (Friar) on Jun 05, 2008 at 09:14 UTC
    I guess he means XML documents with a flexible structure. E.g. a value is missing, there is one value or there are several values. I agree that XML::Simple is only good for simple stuff - expescially the stability gets pretty bad when the structure is very flexible and not static.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690347]
[ELISHEVA]: Simple yes. and I did consider that. but this isn't one off . An important data source that I don't control is generating bom prefixed utf8 files and I'd rather not have to be munging files every few months.
[erix]: on teh other hand a SOPW is pretty much garanteed to get an answer from tux (and probably the module fixed)
[ELISHEVA]: plus it bugs me that something that *should* be simple, *should* work- unicode and noms aren't exactly the new kids on the block
[ELISHEVA]: well then since the obvious possible mistakes on my part have been ruled out, SOPW it is.
[ELISHEVA]: the data source, or one of them, is the OECD - they provide a *lot* of data that ought to be easily available to perl programmers.
[erix]: it might be cunning to mention the module in the title... :)
[ELISHEVA]: fancy that - a title that actually describes the problem :-)
[ELISHEVA]: but actually thanks for the reminder
[Discipulus]: DBI::CSV + utf8 = BOO?M
[erix]: in extremis we tend to forget stuff ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-05-28 20:36 GMT
Find Nodes?
    Voting Booth?