|
Re: Parsing Using SAX: msg#00048text.xml.xerces-c.user
Its Ok, I needed to inheirt from the handlerbase class Cheers ALEX appleGuy wrote: > > Hi, > > Ive finally started to get going using Sax. Now im using the Samples to > help coding my own project. > > Looking at Sax Count, they seem to have created their own handler class > (saxcounthandler): > > SAXCountHandlers handler; > parser->setDocumentHandler(&handler); > parser->setErrorHandler(&handler); > > How can they do this as The type needed in setDocumentHandler needs to be > type DocumentHandler. > > When I try to use my custom class as a handler, it gives an error...what > is special about the SaxCountHandlers..? > > Ive used pointers,. they have dereferenced an object, surely im doing the > same thing? > > Many Thanks > Alex > > p.s: Also by DocumentHandler, what does this do exactly. Im thinking its > the controller for the parsing. I.e you can use the parsed data to modify > the handler and visa-versa > > > > > -- View this message in context: http://www.nabble.com/Parsing-Using-SAX-tf2835675.html#a7917517 Sent from the Xerces - C - Users mailing list archive at Nabble.com. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Parsing Using SAX: 00048, appleGuy |
|---|---|
| Next by Date: | Re: Parsing Using SAX: 00048, appleGuy |
| Previous by Thread: | Parsing Using SAXi: 00048, appleGuy |
| Next by Thread: | Re: Parsing Using SAX: 00048, appleGuy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |