Re: [Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-12 Thread Michael Orlitzky
On 12/12/11 02:42, Malcolm Wallace wrote: The extra parameter i is for information attached to each node of the tree. As you have correctly guessed, the parser fills in this field with positional information relating to the original source document, which is useful for instance if you are

Re: [Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-11 Thread Michael Orlitzky
On 12/11/2011 01:36 AM, Antoine Latter wrote: It looks like the function 'xmlParse' returns a value of type 'Document Posn', according to the API docs. I'm guessing the 'Posn' value is used to annotate the position in the source document a particular piece of XML came from, so you can report

Re: [Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-11 Thread Malcolm Wallace
The extra parameter i is for information attached to each node of the tree. As you have correctly guessed, the parser fills in this field with positional information relating to the original source document, which is useful for instance if you are validating or checking the original document.

[Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-10 Thread Michael Orlitzky
I'm trying to migrate one my programs from the old HaXml API to the new. Please, someone save me. I'm currently stuck with this, which works in 1.13. All of the filters work on Content, so I make some from the root element with the root_elem = CElem root line. -- |Takes an XML String as

Re: [Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-10 Thread Antoine Latter
On Sun, Dec 11, 2011 at 12:08 AM, Michael Orlitzky mich...@orlitzky.com wrote: I'm trying to migrate one my programs from the old HaXml API to the new. Please, someone save me. I'm currently stuck with this, which works in 1.13. All of the filters work on Content, so I make some from the root