Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

index server/service: custom filters - indexing xml files

0 views
Skip to first unread message

Neil Evans-Mudie

unread,
Oct 19, 2000, 3:00:00 AM10/19/00
to
index server/service: custom filters - indexing xml files

Guys,

I have schema (attached at end) which describes a person (very simply)..

I have two xml instances (attached at bottom of narrative [excuse use of
movie stars :-( ])..
I have these two xml instance files in a folder on my server. I want to
index these files and be able to search them. The search must be capable of
"select * from Folder:PersonXmls where Country = 'USA'" i.e. fielded search.
I have been digging around and noticed that MS's Index Server (Win2000
Service) does a similar thing for HTML files / pages and achieves this
through 'filters'
(http://msdn.microsoft.com/library/psdk/indexsrv/ixufilt_95yr.htm). You can
also create custom filters that implement the IFilter interface for a
specific type of file. I wondered if anybody out there has

(a) any experience of creating a custom index server filter which i could
relate to an xml file, and / or
(b) an actual generic xml filter which i could buy / have and plug into
index server, and / or
(c) an alternative strategy to indexing xml files to enable fielded search?

All advice really appreciated.

tia,

Neil.

instances
=======
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Person SYSTEM "file:./Person.dtd">
<Person>
<Name>
<FamilyName>Friel</FamilyName>
<FirstName>Anna</FirstName>
<DisplayName>Anna Friel</DisplayName>
</Name>
<Address>
<Line1>1 Straight Avenue</Line1>
<PostCode>12345</PostCode>
<Country>USA</Country>
</Address>
<Address>
<Line1>1 Curvy Avenue</Line1>
<PostCode>S45 7TY</PostCode>
<Country>UK</Country>
</Address>
</Person>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Person SYSTEM "file:./Person.dtd">
<Person>
<Name>
<FamilyName>Kidman</FamilyName>
<FirstName>Nicole</FirstName>
<DisplayName>Nicole Kidman</DisplayName>
</Name>
<Address>
<Line1>1 Straight Street</Line1>
<PostCode>12345</PostCode>
<Country>USA</Country>
</Address>
<Address>
<Line1>1 Curvy Street</Line1>
<PostCode>S45 7TY</PostCode>
<Country>UK</Country>
</Address>
</Person>

schema
======
<?xml version ="1.0"?>
<Schema name = "Person.xdr"
xmlns = "urn:schemas-microsoft-com:xml-data"
xmlns:dt = "urn:schemas-microsoft-com:datatypes">
<ElementType name = "Person" content = "eltOnly" order = "seq">
<AttributeType name = "identifier" dt:type = "string"/>
<attribute type = "identifier"/>
<element type = "Name"/>
<element type = "Address" minOccurs = "1" maxOccurs = "*"/>
</ElementType>

<ElementType name = "Name" content = "eltOnly" order = "seq">
<element type = "FamilyName"/>
<element type = "FirstName"/>
<element type = "DisplayName" minOccurs = "0" maxOccurs = "1"/>
</ElementType>

<ElementType name = "Address" content = "eltOnly" order = "seq">
<element type = "Line1"/>
<element type = "PostCode"/>
<element type = "Country"/>
</ElementType>

<ElementType name = "Line1" content = "textOnly"/>
<ElementType name = "PostCode" content = "textOnly"/>
<ElementType name = "Country" content = "textOnly"/>
<ElementType name = "FamilyName" content = "textOnly"/>
<ElementType name = "FirstName" content = "textOnly"/>
<ElementType name = "DisplayName" content = "textOnly"/>
</Schema>

Developer, Fretwell-Downing Education Ltd.
(mailto:Neil.Eva...@fdgroup.com; http://www.fdgroup.com/)
[Snail-Mail:
fretwell-downing education Ltd,
Brincliffe House, 861 Ecclesall Road, Sheffield, S11 7AE, England.
Tel: +44 (0)114 281 6000; Fax: +44 (0)114 281 6001]


0 new messages