all groups > dotnet xml > april 2005 >
You're in the

dotnet xml

group:

Filter XmlDocument based on XPath expressions


Filter XmlDocument based on XPath expressions Dinesh
4/26/2005 12:16:04 PM
dotnet xml: Hello,

I have a very complex XmlDocument. I want to create a new XmlDocument that
contain only certain certain elements, based on a set of XPATH expressions I
have.

What is the easiest and least performance impacting solution for this using
the .NET implementation of DOM?

Re: Filter XmlDocument based on XPath expressions Martin Honnen
4/27/2005 12:00:00 AM


[quoted text, click to view]

You could write an XSLT stylesheet that copies the elements, if you
already have the XPath expressions then writing or generating the
stylesheet is certainly easy.


--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button