|
Re: Regarding smalltalk: msg#00109lang.smalltalk.squeak.beginners
(copy of a mail I sent to the wrong post) ramramesh_26@xxxxxxxxxxx a écrit : HI cdrick thanks for your replyshow us the result you'd like for the example sentence... After collecting it in a sequence i have to store it in a variable, so that iNot sure (and not expert), but I think you should use the SAXParser so that you navigate the xml tree and do whatever you want with elements/attributes... The DOMParser is actually building a full tree for further exploration... can be long and you have to process it again to get more information... I dit that once to collect wheteher data for a large xml file... The process is maybe not obvious, you need to subclass SAXHandler with say DAMLHandler, where you'll redefine messages likes characters: startDocument: endElement: startElement:attribute:list:... but the better is probably to subclass, then you put a self halt in the method startDocument: and little by little you see how it works... Also, you'll probably have to create a class where you'll store the information you want (Meteo class in my case...)... Sorry, but I cannot help you more on this... really busy for some monthes :'( Cédrick ps: I joined my meteo handlers, of course it won't work but it will give you another example of SAXHandler (that the XMLDOMParser which is a particular case of SAXHandler)... soory for the bad code :p
Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: more Squeak exploring and Dolphin, Magma, Omnibase, cdrick |
|---|---|
| Next by Date: | Re: Morph Drop Shadows, David H. Shanabrook |
| Previous by Thread: | Re: Regarding smalltalk, cdrick |
| Next by Thread: | do it, print it, inspect it, explore it, debug it missing from workspace menu, mstram |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |