I'm using HaXml to parse an SVG file. I can, so far, locate elements based on attributes and parse them into a HaXml Element datatype.
I'm now trying to parse the Element using the HaXml package, but have been unsuccessful.
I've resorted to creating my own function that works, but it would be good to use resources from HaXml if possible.
Here is the function that I have used to parse the name of an Element.
getName :: Element s -> QName
getName (Elem a _ _) = a
Is there any way to do this with the HaXml package? I've searched, but so far found nothing.
Thanks!
No comments:
Post a Comment