I recently posted about using HXT pickles for parsing. After some reading I decided use regular HXT instead.
However, I am unable to create lists, ie. I have an XML document:
<meta>
<sampleQuery>sample1</sampleQuery>
<sampleQuery>sample2</sampleQuery>
</meta>
and a parsing function
parseMeta =
proc x -> do
meta <- deep (isElem >>> hasName "meta") -< x
sampleQueries <- getText <<< getChildren <<< deep (hasName "sampleQuery") -< meta
returnA -< Meta sampleQueries
sampleQueries should have the type [String] (["sample1", "sample2"] in this case) but I am unable to achieve this.