
What's the easiest way for a beginner such as myself to parse XML data, specifically MusicXML files? I want to load a partial representation of a MusicXML file into Haskell datatypes and manipulate it. I don't need to validate the file, and I can make some safe assumptions about the content, so this is really a pretty simple task. Thanks, Mike

On 21 Jun 2010, at 22:14, Michael Mossey wrote:
What's the easiest way for a beginner such as myself to parse XML data, specifically MusicXML files? I want to load a partial representation of a MusicXML file into Haskell datatypes and manipulate it. I don't need to validate the file, and I can make some safe assumptions about the content, so this is really a pretty simple task.
You probably want to grab HaXml and get on with it :) Thanks Bob

I'd suggest HaXML. and here is the ch from Real World Haskell that
talks about HaXML
http://book.realworldhaskell.org/read/extended-example-web-client-programmin...
On Mon, Jun 21, 2010 at 5:14 PM, Michael Mossey
What's the easiest way for a beginner such as myself to parse XML data, specifically MusicXML files? I want to load a partial representation of a MusicXML file into Haskell datatypes and manipulate it. I don't need to validate the file, and I can make some safe assumptions about the content, so this is really a pretty simple task.
Thanks, Mike _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Omnem crede diem tibi diluxisse supremum.

If I can get the musicxml package to work, this is no doubt the best choice for me. I am running Haskell Platform 2010.1.0.0 on Windows XM. I just installed musicxml and it finished, but I got a vast number of warnings. I hope it's okay. Stuff about shadowing bindings, deprecated Prelude module, and much else. I will now see if I can get musicxml to run. Mike Stephen Tetley wrote:
There is a package for this on Hackage:
http://hackage.haskell.org/package/musicxml _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Michael Mossey schrieb:
What's the easiest way for a beginner such as myself to parse XML data, specifically MusicXML files? I want to load a partial representation of a MusicXML file into Haskell datatypes and manipulate it. I don't need to validate the file, and I can make some safe assumptions about the content, so this is really a pretty simple task.
Thanks, Mike
I think, the simplest xml library is http://hackage.haskell.org/package/xml Cheers Christian
participants (5)
-
Christian Maeder
-
Michael Mossey
-
Stephen Tetley
-
Thomas Davie
-
Wilson MacGyver