Click here to Skip to main content
15,913,487 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML navigation help needed Pin
liyang yu22-Aug-04 9:06
liyang yu22-Aug-04 9:06 
GeneralRe: XML navigation help needed Pin
Pradeep Shamarao6-Sep-04 21:53
Pradeep Shamarao6-Sep-04 21:53 
GeneralXml Parsing & Validating Pin
SR7717-Aug-04 10:52
SR7717-Aug-04 10:52 
GeneralRe: Xml Parsing & Validating Pin
David Salter23-Aug-04 4:07
David Salter23-Aug-04 4:07 
GeneralNo correct xhtml from XML and XSL Pin
Gumbah13-Aug-04 0:06
Gumbah13-Aug-04 0:06 
GeneralRe: No correct xhtml from XML and XSL Pin
ChrisAdams15-Aug-04 19:37
ChrisAdams15-Aug-04 19:37 
GeneralRe: No correct xhtml from XML and XSL Pin
Gumbah15-Aug-04 21:01
Gumbah15-Aug-04 21:01 
QuestionPulling Values From An XML File - Recommendations? Pin
Member 66660712-Aug-04 6:11
Member 66660712-Aug-04 6:11 
Hello all,

I am processing an XML file section appropriately (Individuals) . I have added elements (the Numbers section) to the XML File.

Below is the XML File Layout:

<Metrics>
<Numbers>
<Possible>13</Possible>
<Fail>0</Fail>
<Pass>7</Pass>
<Blocked>0</Blocked>
<NotRun>2</NotRun>
<TestBridgeID>43</TestBridgeID>
<VersionID>14</VersionID>
<Verified>0</Verified>
<Errors>4</Errors>
<Deleted>0</Deleted>
<RunDate>7/7/2004</RunDate>

</Numbers>
<Individuals>
<MultiLevelID>820</MultiLevelID>
<UIValues>
<Tab>Finishing</Tab>
<Control>Landscape</Control>
<Setting>ON</Setting>
<Disposition>1</Disposition>
<Reason>12</Reason>
</UIValues>
<UIValues>
<Tab>Finishing</Tab>
<Control>Landscape</Control>
<Setting>ON</Setting>
<Disposition>1</Disposition>
<Reason>12</Reason>
</UIValues>
</Individuals>
<Individuals>
etc. etc. etc.


Here is my code for processing the Individuals section.


private void ReadIndividualUI()
{
//Create a resolver with the necessary credentials.
XmlUrlResolver resolver = new XmlUrlResolver();
NetworkCredential nc = new NetworkCredential(ConfigurationSettings.AppSettings ["SecureLogin"], ConfigurationSettings.AppSettings["SecurePassword"]);
resolver.Credentials = nc;

// Get a Stream object containing the XML file.
Uri myUri = new Uri("http://Benningfield1/DataSetTest/SwattReporta.xml");

Stream s = (Stream)resolver.GetEntity(myUri, null, typeof(Stream));

// Construct a reader using the Stream object.
XmlTextReader xmlReader = new XmlTextReader(s);

//Process XML File accordingly
while(xmlReader.Read())
{
//Perform appropriate processing
}


Here is my pseudocode for what I need to do next.

Go To The Numbers element
Pull all values (from Possible element, FAil element etc.) into a memory storage area
Then process values accordingly


What is the best way to mesh what I want to do in Pseudocode with the current ReadIndividualUI() method functionality?

TYIA,
lonelobo
GeneralEvaluating XPath expressions on Windows CE Pin
Kot_Begemot6-Aug-04 5:52
Kot_Begemot6-Aug-04 5:52 
GeneralRegular Expression of XML document Pin
Rashid_Mehmood5-Aug-04 14:53
Rashid_Mehmood5-Aug-04 14:53 
GeneralRe: Regular Expression of XML document Pin
abu-alSaber16-Aug-04 22:12
abu-alSaber16-Aug-04 22:12 
GeneralMerging of two XML documents Pin
dabs5-Aug-04 7:15
dabs5-Aug-04 7:15 
GeneralRe: Merging of two XML documents Pin
ChrisAdams11-Aug-04 23:49
ChrisAdams11-Aug-04 23:49 
GeneralRe: Merging of two XML documents Pin
dabs12-Aug-04 0:31
dabs12-Aug-04 0:31 
GeneralRe: Merging of two XML documents Pin
Praveen Nayak6-Sep-04 0:11
Praveen Nayak6-Sep-04 0:11 
Generalmicrosoft vb script runtime error'800a01a8' is harassing me Pin
chmonalisa4-Aug-04 23:35
chmonalisa4-Aug-04 23:35 
Generalmicrosoft vb script runtime error'800a01a8' is harassing me Pin
chmonalisa4-Aug-04 23:33
chmonalisa4-Aug-04 23:33 
GeneralSOAP to SQL / SQL to SOAP Pin
cfaulkner3-Aug-04 11:59
cfaulkner3-Aug-04 11:59 
GeneralError with XML Pin
osal3-Aug-04 8:19
osal3-Aug-04 8:19 
GeneralRe: Error with XML Pin
abu-alSaber16-Aug-04 22:00
abu-alSaber16-Aug-04 22:00 
GeneralI have a project to submit and dont know how to start Pin
ClubV22-Aug-04 5:31
ClubV22-Aug-04 5:31 
GeneralRe: I have a project to submit and dont know how to start Pin
Jeff Martin5-Aug-04 7:50
Jeff Martin5-Aug-04 7:50 
Generalediting XML config file from within executing program in VB.NET Pin
Vineet Rajan2-Aug-04 1:59
Vineet Rajan2-Aug-04 1:59 
GeneralGeneric XSL to Page and Sort 'FOR XML RAW, XMLDATA' Query Pin
jvaugha426-Jul-04 1:43
jvaugha426-Jul-04 1:43 
GeneralError when writing XML file Pin
basidati20-Jul-04 21:26
basidati20-Jul-04 21:26 

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.