Jim Harrison wrote:
I'm beginning to work with XMLDocument and I have a question. I'm a pretty green Zope newbie, so please excuse me if this is naive.
[snip]
What's the strategy behind the id notation approach to access? It's pretty unwieldy given that you must view the document's display in the management interface to see what ids are there, and ids change when the document is edited. Is there a way to use the tag names in a url to target particular parts of the document?
Hm, XMLWidgets may not do what you want exactly but it does allow a way to target tag names (and specific tags). Look it up at: http://www.zope.org/Members/faassen/XMLWidgets You'll need to dive into the Python sources to use it though, currently. [snip]
Since the slideshow example uses tag names along with objectValues to target particular document content for display, the names are clearly there (somewhere) and usable ... maybe I'm just thinking about this the wrong way. If someone could post some additional example code dealing with tag name manipulation, it would probably be really helpful to me.
XMLWidgets does contain plenty of sample code. :) Regards, Martijn