Re: [ADVANCED-DOTNET] Advanced DataSet Queries

2003-07-18 Thread Philip Nelson
--- "Woodard, John" <[EMAIL PROTECTED]> wrote: > Philip, > > I'm having trouble understanding your example given that I don't how your > tables and records are layed out, so I can't complete the mental diagram. Ah the beauty and horror of cut and paste ;-) > It looks like mapData is the parent, b

Re: [ADVANCED-DOTNET] Advanced DataSet Queries

2003-07-18 Thread Woodard, John
hilip Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Advanced DataSet Queries Here is an example that relies on the fact that .net will automatically create a relationship between the tables where there are xml nest

Re: [ADVANCED-DOTNET] Advanced DataSet Queries

2003-07-17 Thread Philip Nelson
Here is an example that relies on the fact that .net will automatically create a relationship between the tables where there are xml nested elements. In your example person will be a parent of color because the color elements are nested in the person elements. string autoRelation; string childFilt

Re: [ADVANCED-DOTNET] Advanced DataSet Queries

2003-07-17 Thread Joe Duffy
Assuming you are attempting to retrieve a set of matching nodes _after_ you have an XML document (versus filtering out the non-matching nodes _before_ translating into XML), why not use an XPath query? In particular, see the System.Xml.XPath namespace and the System.Xml.XPath.XPathNavigator class.

[ADVANCED-DOTNET] Advanced DataSet Queries

2003-07-17 Thread Woodard, John
I am looking for a way to do an advanced query quickly and efficiently. Given the following XML structure read into a DataSet of people and the colors they are wearing: One Red Green Blue Two Red Green Orange Three Blue Green Orange Which wou