hxt: How to Unpickle Multiple Adjacent Elements

4 Jan
2015
4 Jan
'15
6:36 p.m.
Hi, With xml element having DTD like following: <!ELEMENT entry ((art*, formula?, table?), hw, hsl?, (pr | altpr)?, (ahw, hsl?, (pr | altpr)?)*, vr?, fl?, lb*, in*, ((dx) | (cx?, def?))?, dro*, dxnl*, uro*, syns*)> I want to unpickle the sequence hw, hsl?, (pr | altpr)?, (ahw, hsl?, (pr | altpr)?)* into Haskell data type [Headword] where data Headword = Hw { hwText :: String , hwSl :: Maybe String , hwPr :: Maybe Pronunciation } However in the hxt pickle API I cannot found a way to extract a sequence of adjacent elements. Is there any one knowing how to do it? Thanks, Jimmy Lu
3790
Age (days ago)
3790
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jimmy Lu