Click here to Skip to main content
16,006,065 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionQuestions Related to XML DTD Pin
Rahithi13-Dec-06 16:05
Rahithi13-Dec-06 16:05 
AnswerRe: Questions Related to XML DTD Pin
DavidNohejl15-Dec-06 11:17
DavidNohejl15-Dec-06 11:17 
GeneralRe: Questions Related to XML DTD Pin
Rahithi15-Dec-06 15:30
Rahithi15-Dec-06 15:30 
AnswerRe: Questions Related to XML DTD [modified] Pin
George L. Jackson15-Dec-06 20:45
George L. Jackson15-Dec-06 20:45 
QuestionGenerate an xml file using Schema [modified] Pin
Nnabugwu13-Dec-06 2:24
Nnabugwu13-Dec-06 2:24 
AnswerRe: Generate an xml file using Schema Pin
Stefan Troschuetz13-Dec-06 2:47
Stefan Troschuetz13-Dec-06 2:47 
AnswerRe: Generate an xml file using Schema Pin
Stefan Troschuetz15-Dec-06 21:26
Stefan Troschuetz15-Dec-06 21:26 
QuestionXPath war Pin
Eduard Keilholz12-Dec-06 2:26
Eduard Keilholz12-Dec-06 2:26 
Hey guys, i'm fearly new to xml (espacially xpath) and need a little help here..

My XML document looks like
<br />
<?xml version="1.0" encoding="ISO-8859-1" ?><br />
< Properties><br />
  < Property><br />
    <Number>10</Number><br />
    <Type>Type A</TypeNL><br />
    <Description>A nice description</Description><br />
  </Property><br />
</Properties><br />


(added spaces in front of the Properties and Property element, because else they appear as smiley)

I'm trying to loop through all properties (ofcourse in my xml document there are more than one properties) and would like to retrieve the number, type and description of the property. I'm writing my app in C#
<br />
XPathDocument docRegion = new XPathDocument(_XmlFilePath);<br />
XPathNavigator navRegions = docRegion.CreateNavigator();<br />
XPathNodeIterator nodeProperty = navRegions.SelectChildren("//Properties/Property", "");<br />


I would expect the SelectChildren function to return a collection of all properties in my XML document, but i'm not getting the expected values returned. Am I doing something wrong, do I need a diffrent approach or something??


.: I love it when a plan comes together :.
http://www.zonderpunt.nl

AnswerRe: XPath war Pin
Stefan Troschuetz12-Dec-06 3:15
Stefan Troschuetz12-Dec-06 3:15 
GeneralRe: XPath war Pin
Eduard Keilholz12-Dec-06 3:30
Eduard Keilholz12-Dec-06 3:30 
GeneralRe: XPath war Pin
Stefan Troschuetz12-Dec-06 3:47
Stefan Troschuetz12-Dec-06 3:47 
QuestionXML Version Question Pin
Gupta Suraj11-Dec-06 18:31
Gupta Suraj11-Dec-06 18:31 
AnswerRe: XML Version Question Pin
Stefan Troschuetz11-Dec-06 22:28
Stefan Troschuetz11-Dec-06 22:28 
GeneralRe: XML Version Question Pin
Gupta Suraj12-Dec-06 3:47
Gupta Suraj12-Dec-06 3:47 
QuestionXML Pin
osama_bkr10-Dec-06 22:59
osama_bkr10-Dec-06 22:59 
AnswerRe: XML Pin
George L. Jackson11-Dec-06 15:29
George L. Jackson11-Dec-06 15:29 
QuestionHow I can get xsi:nil="true" in XMLElement? Pin
voladu10-Dec-06 21:15
voladu10-Dec-06 21:15 
QuestionProblem using XPath Pin
priyank_ldce7-Dec-06 4:03
priyank_ldce7-Dec-06 4:03 
AnswerRe: Problem using XPath Pin
Stefan Troschuetz7-Dec-06 6:03
Stefan Troschuetz7-Dec-06 6:03 
QuestionMSXML2.DOMDocument & MSXML2.XMLHTTP Pin
shadrach_india7-Dec-06 1:48
shadrach_india7-Dec-06 1:48 
Questionbar chart from xml Pin
saravanan054-Dec-06 12:18
saravanan054-Dec-06 12:18 
QuestionRe: bar chart from xml Pin
DavidNohejl15-Dec-06 11:13
DavidNohejl15-Dec-06 11:13 
QuestionSchema questions: Attributes vs elements; Using Globals types Pin
Wheatbread30-Nov-06 5:36
Wheatbread30-Nov-06 5:36 
AnswerRe: Schema questions: Attributes vs elements; Using Globals types Pin
George L. Jackson30-Nov-06 12:03
George L. Jackson30-Nov-06 12:03 
GeneralRe: Schema questions: Attributes vs elements; Using Globals types Pin
Wheatbread1-Dec-06 6:38
Wheatbread1-Dec-06 6:38 

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.