Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> Angus Leeming <[EMAIL PROTECTED]> writes: >> >> | Lars Gullik Bjønnes wrote: >>>> Either a lib or xml parser for spirit. >>> >> | There are examples of same in the repository at spirit.sf.net. If you >> | want any help, just holler. The spirit-users list is jolly helpful. >> >> Ok. I need some help. >> >> I have had a look at the xml.zip on the spirit site. But all of the >> examples either just check that spirit can parse an xml file or build >> a document structure of some kind. >> >> I need neither. >> >> What'd like is to have a interface similar to expat (I provide two >> functions that get called on begin-tag and end-tag.) >> Or at least someting simiar. From the examples in xml.zip I cannot see >> how to do this. >> >> Any pointers? > | Sure. See attached.
Ok... then add some attributes, mixed-contentent. <xml attr1="" attr2=""> <greeting>Hello</greeting>there. </xml> Would be great seeing an example using the actual xml grammar from xml.zip? Or is generic parsing frowned upon with spirit? -- Lgb