Broccie,
When you say filter, do you mean that you want to select elements that meet
certain criteria, for example they all have attributes that match a certain
value?
You're certainly on the right track looking at XPath. XPath is one of the
foundation technologies of XML and the one best suited to solve your
problem. XPath will help you to select XML nodes from an XML document that
meet your filter criteria.
However, you need a vehicle to execute your XPath statements. You can do
this in a number of ways. Which one is thie best one for you depends on what
you are going to do with the results of the filtering.
You can execute the XPath statement either using a DOM based XML Parser such
as XMLDocument in MSXML and XmlDocument in the .NET Framework. The .NET
Framework also introduced a cursor based parser model with the XPathDocument
to select XML.
This approach is well suited if you need to run more code to work with the
results of your filtering.
If you are most interesting to transform the results into another XML format
or into HTML the you can also leverage XPath as a part of an XSL
transformation. However, XSL might be too much for you to tackle if you're
still new to XML at all.
Let me know if this helped clearing things up or if you have further
questions.

Signature
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
> Hi
> I'm trying to filter an xml document that contains
[quoted text clipped - 7 lines]
>
> Broccie
Broccie - 22 Oct 2003 04:42 GMT
Christoph
Yes, that is what I need for the filter. I just need to
find elements that have particular attributes and then
display only those elements. I am using an xslt document
to display the xml file as a whole (in a table).
Can you tell me more about XPath?
Broccie
>-----Original Message-----
>Broccie,
[quoted text clipped - 40 lines]
>
>.
Christoph Schittko [MVP] - 22 Oct 2003 05:16 GMT
There is quite a bit to tell about XPath, too much to sum it up in a
newsgroup posting. You may want to invest in a good book or start with a
platform independent XSL / XPATH tutorial. Take a look at [0] for example.
Maybe this helps you getting started.

Signature
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
[0] http://www.topxml.com/xsl/default.asp
> Christoph
> Yes, that is what I need for the filter. I just need to
[quoted text clipped - 66 lines]
> >
> >.
Broccie - 22 Oct 2003 13:55 GMT
Thanks Christoph....
Broccie
>-----Original Message-----
>There is quite a bit to tell about XPath, too much to sum it up in a
[quoted text clipped - 74 lines]
>
>.