---- On Mon, 19 Jul 2010 11:55:30 -0700 Norbert Hartl wrote ----
Could you elaborate on the usage of xmlns? The one you defined does nothing. The foo in the xml is just the element name. I would like to know
I shouldn't have used "foo" twice. That was an example of the new XMLWriter API that will be released shortly. This example should be clearer: writer := XMLWriter new. writer tag name: 'foo'; xmlnsAt: 'bar' put: 'http://bar'; content: 'test'. It produces: <foo xmlns:bar="http://bar">test</foo>
- how to define a namespace prefix for an element
You send the XMLTagWriter returned by #tag or #tag: #xmlnsAt:put: with the prefix as the first argument and URI as the second.
- how to define a default namespace for an element
You send #xmlns: to an XMLTagWriter. Note that this isn't set it stone yet
I think I need another look in the xml parser since last time :) Thanks for putting effort into xml parser. Is there a pull parser available or planned?
There are pull parsers on SS but they are (last time I checked) kind of old and may need to be updated. I will look into it eventually.
thanks,
Norbert
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project