[Zope-dev] XML Document & the Venerable ZCat

Clint Shelby McCulloch csm@io.com
Thu, 16 Sep 1999 17:20:33 -0500 (CDT)


I was wondering if anyone has had any success using zcatalog to index xml.

Given some trivial xml like:

<contacts>
  <company name="Acme Web Design">
	<contact>
	  <name>Road Runner</name>
	  <phone>555-5555</phone>
	</contact>

	<contact>
	  <name>Wylie Coyote</name>
	  <phone>444-4444</phone>
	</contact>

	<phone>333-3333</phone>
  </company>>
</contacts>
 
It would be neat if you could index this information and be able to search
contact names, contact phone numbers, and company phone numbers.  Having
tried a few things, I have not yet been able to persuade zcat to
cooperate.  Has anyone tackled this yet?  What would be the best way to go
about capturing this kind of functionality?

It would be nice option if all the 'fields' in an xml document could be
indexed or indexed after being selected from a list along with the
indexing method (Text or Fielded).  This would be useful when you have a
document with lots of different elements or lots of smaller documents
having different schemas.  Any ideas?