Re: [Haskell-cafe] Processing XML with HXT

2008-04-23 Thread rodrigo.bonifacio
Hi Uwe Schmidt, thanks a lot. Just one more question, I didn't find any example describing how to get the text information of a XML element in the picklers tutorial. So, if the use case element is described as follwing: useCase idUC_01/id nameOpening .../name descriptionThis use case

Re: [Haskell-cafe] Processing XML with HXT

2008-04-23 Thread Uwe Schmidt
Hi Rodrigo, Just one more question, I didn't find any example describing how to get the text information of a XML element in the picklers tutorial. So, if the use case element is described as follwing: ... here is a complete example for your use case. Take the following XML data in file

[Haskell-cafe] Processing XML with HXT

2008-04-22 Thread rodrigo.bonifacio
Hi all, I´m just starting with HXT. My question is, how can I expose a use case from the main function below (the XmlPickler for UseCase has been already defined): main :: IO () main = do runX ( xunpickleDocument xpUseCase [ (a_validate,v_0) ], uc.xml ) return () For example, if I

Re: [Haskell-cafe] Processing XML with HXT

2008-04-22 Thread Albert Y. C. Lai
rodrigo.bonifacio wrote: I´m just starting with HXT. My question is, how can I expose a use case from the main function below (the XmlPickler for UseCase has been already defined): main :: IO () main = do runX ( xunpickleDocument xpUseCase [ (a_validate,v_0) ], uc.xml ) return ()