Click here to Skip to main content
15,896,557 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralParsing CDATA to bject [modified] Pin
udikantz7-Dec-07 3:00
udikantz7-Dec-07 3:00 
GeneralRe: Parsing CDATA to bject Pin
jegastar11-Dec-07 2:07
jegastar11-Dec-07 2:07 
GeneralComparing two xml files Pin
anu815-Dec-07 22:17
anu815-Dec-07 22:17 
GeneralRe: Comparing two xml files Pin
sampath_dr28-Oct-09 21:20
sampath_dr28-Oct-09 21:20 
GeneralSerializing object using Generic.list Pin
ONeil Tomlinson4-Dec-07 12:25
ONeil Tomlinson4-Dec-07 12:25 
GeneralRe: Serializing object using Generic.list Pin
Prateek G9-Dec-07 22:40
Prateek G9-Dec-07 22:40 
GeneralSchema Design (specifically for xsd.exe) Pin
Brady Kelly4-Dec-07 3:56
Brady Kelly4-Dec-07 3:56 
QuestionCan I load an XPath result XmlNodeList into a Dataset/DataGrid? Pin
jack8091830-Nov-07 4:36
jack8091830-Nov-07 4:36 
I'm writing a C# Windows/.Net 2.0 app which will take a large XML document as an initial input. My form has 4 basic controls: 3 comboboxes (Country, State, and City) for filtering the XML data and a DataGrid to display the results. The XML doc has this format:

<updates xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<locations>
<country name="United States">
<state name="California">
<city name="Santa Monica">
<location id="2" venue_id="1" category="Hotel" name="Example Hotel" address="3214 Wilshire Blvd." zipcode="90404"/>
<location id="3" venue_id="2" category="Airport" name="Santa Monica Airport" address=" 3223 Donald Douglas Loop"/>
</city>
<city name="Los Angeles">
<location id="4" venue_id="3" category="wwan" name="Cell Carrier GPRS Network" address="Entire LA Metro Area"/>
</city>
<city name="San Diego">
<location id="5" venue_id="1" category="Hotel" name="Mike Hotel" address="3214 Mike Blvd." zipcode="90414"/>
<location id="6" venue_id="2" category="Airport" name="John Airport" address=" 3223 john Douglas Loop S Ste 3"/>
<location id="7" venue_id="1" category="Cafe" name="New Hotel" address="3214 New Scott Blvd." zipcode="90434"/>
<location id="8" venue_id="2" category="Bar" name="New Airport" address=" 3223 New Douglas Loop S Ste 4"/>
</city>
</state>
<state name="Colorado">
<city name="Colorado Springs">
<location id="2" venue_id="1" category="Hotel" name="Example Hotel" address="3214 El Paso Blvd." zipcode="90404"/>
<location id="3" venue_id="2" category="Airport" name="Colorado Springs Airport" address=" 3223 Airport Drive"/>
</city>
<city name="Denver">
<location id="4" venue_id="3" category="wwan" name="Cell Carrier GPRS Network" address="Entire COSP Metro Area"/>
</city>
</state>
</country>
</locations>
</updates>

I have no problem using XPath queries to extract the values to populate the Country, State, and City comboboxes; each selection drives the data in the subsequent combobox. Upon selection in the City combobox, I can query for a resulting set of 'locations'. My problem is how to stuff this XmlNodeList into a DataSet which I can then use with my DataGrid. I have no problem reading an entire document into a DataSet

DataSet ds = new DataSet();
ds.ReadXml("Test.Search.xml");

but have no idea how to stuff an XmlNodeList into one.
Thanks.

Jack80918
AnswerRe: Can I load an XPath result XmlNodeList into a Dataset/DataGrid? Pin
George L. Jackson30-Nov-07 16:01
George L. Jackson30-Nov-07 16:01 
QuestionData islands is not working on ordered list Pin
hogan.smith29-Nov-07 22:06
hogan.smith29-Nov-07 22:06 
AnswerRe: Data islands is not working on ordered list Pin
led mike30-Nov-07 4:26
led mike30-Nov-07 4:26 
GeneralRe: Data islands is not working on ordered list Pin
hogan.smith30-Nov-07 17:16
hogan.smith30-Nov-07 17:16 
QuestionXSLT generator Pin
Yoyosch28-Nov-07 4:43
Yoyosch28-Nov-07 4:43 
AnswerRe: XSLT generator Pin
led mike28-Nov-07 5:09
led mike28-Nov-07 5:09 
GeneralRe: XSLT generator Pin
Yoyosch29-Nov-07 23:17
Yoyosch29-Nov-07 23:17 
AnswerRe: XSLT generator Pin
George L. Jackson30-Nov-07 15:35
George L. Jackson30-Nov-07 15:35 
QuestionMedia RSS 2.0 parser Pin
rajshri_newase27-Nov-07 22:21
rajshri_newase27-Nov-07 22:21 
Questionhow can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer27-Nov-07 21:05
Rajeshwar Code- Developer27-Nov-07 21:05 
AnswerRe: how can i create xml data abd how can i update delete and insert.. Pin
Prateek G27-Nov-07 22:35
Prateek G27-Nov-07 22:35 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer28-Nov-07 2:03
Rajeshwar Code- Developer28-Nov-07 2:03 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
George L. Jackson28-Nov-07 2:54
George L. Jackson28-Nov-07 2:54 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
Member 46484919-Dec-07 17:45
Member 46484919-Dec-07 17:45 
QuestionHow to view MathML in IE6 using MathPlayer? Pin
Hariharan210527-Nov-07 2:13
Hariharan210527-Nov-07 2:13 
AnswerRe: How to view MathML in IE6 using MathPlayer? Pin
XML-Gene30-Nov-07 18:37
XML-Gene30-Nov-07 18:37 
Questionxml verifier Pin
Nom Qureshi25-Nov-07 11:28
Nom Qureshi25-Nov-07 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.