I want to get access to the data of an XML file like
<?xml version="1.0"?>
<MY>
<Foo id="1" name="test">
<Argument name="a" />
</Foo>
<Foo id="2" name="test2">
<Argument name="a" />
<Argument name="b" />
</Foo>
<Other id="2" name="someOther"/>
</MY>
I want e.g. to read out each Foo with its Arguments, how can I do this with Haskell? (I would like to use the HaXml module)
I don't know where to start.
For simple tasks you might want to consider the tagsoup package.
Yes, documentation is a big cons about haskell. I wonder why haskell people hate documenting their code so much. No need for fat papers, few usage examples is usually more than enough.
Also small example of HaXML usage available here: http://book.realworldhaskell.org/read/extended-example-web-client-programming.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With