[Zope] Catalog'ing XML Documents

Amos Latteier amos@aracnet.com
Tue, 02 Nov 1999 10:28:54 -0800


At 11:26 AM 11/2/99 -0000, you wrote:
>Hi all,
>
>What is the incantation used to catalog XML Documents?
>
>I need to be able to retrieve nodes from an XML Document rather than the
>document as a whole.

Since Nodes of an XMLDocument are Zope objects like any other you can
catalog the however you would normally catalog Zope objects.

I think that the easiest way would be to do a "Find to ZCatalog" specifying
the meta_type of the Elements you wanted to catalog (an Element's meta_type
is it's tag name). Then make sure your catalog has appropriate indexes and
meta_data defined. You might want to write some external methods if the
Nodes you are cataloging need additional catalogable methods.

Good luck!

-Amos