Click here to Skip to main content
15,917,645 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XPathNavigator.Select returns only 1 item Pin
kozu8-Sep-06 6:31
kozu8-Sep-06 6:31 
Questioncopy entire file with xslt Pin
Ista7-Sep-06 11:24
Ista7-Sep-06 11:24 
AnswerRe: copy entire file with xslt Pin
led mike7-Sep-06 11:51
led mike7-Sep-06 11:51 
QuestionNeed tutorial for loading attributes to dropdownlist Pin
oohungoo6-Sep-06 23:47
oohungoo6-Sep-06 23:47 
QuestionWhat version of MSXML can be used in Windows NT Pin
Pradosh Tapan Datta6-Sep-06 21:18
Pradosh Tapan Datta6-Sep-06 21:18 
AnswerRe: What version of MSXML can be used in Windows NT Pin
led mike7-Sep-06 12:00
led mike7-Sep-06 12:00 
QuestionVS - XSD text editor - intelliscensy(autofill) Pin
El'Cachubrey5-Sep-06 23:38
El'Cachubrey5-Sep-06 23:38 
Questionget specific child nodes in xmlnodelist Pin
playout5-Sep-06 21:17
playout5-Sep-06 21:17 
Hi,

I have a problem getting the first and second node from a specific xmlnodelist, and display it.

Basically my xml file looks like this

<br />
'Tag means that there is an xml tag<br />
Tag CompanyList:<br />
Tag PrincipalDetail:<br />
Tag Name: John<br />
Tag Surname: Doe<br />
Tag Telephone: 0000<br />
Tag AddressLine: streets<br />
<br />
<br />
Here is my asp.net code<br />
<br />
<code><br />
            Dim xmlDoc As XmlDocument = New XmlDocument<br />
            xmlDoc.Load("c:\Company.xml")<br />
<br />
            'Dim elem As XmlNode = xmlDoc.DocumentElement("PrincipalDetail")<br />
            Dim elemList As XmlNodeList = xmlDoc.SelectNodes("/CompanyList/PrincipalDetail")<br />
            Dim elem As XmlNode<br />
<br />
            Dim nodeLength As Integer = elemList.Count<br />
            Dim i As Integer<br />
            Dim isValid As Boolean = False<br />
<br />
            For i = 0 To nodeLength - 1<br />
                If elemList.Count > 0 Then<br />
                    strInsertXMLToTXT += elemList(0).InnerText<br />
                    strInsertXMLToTXT += elemList(1).InnerText<br />
                    strInsertXMLToTXT += elemList(2).InnerText<br />
                End If<br />
            Next<br />
<br />


What am I doing wrong?
Question.xls to .xml Pin
fmardani4-Sep-06 22:58
fmardani4-Sep-06 22:58 
AnswerRe: .xls to .xml Pin
Bhupi Bhai5-Sep-06 1:43
Bhupi Bhai5-Sep-06 1:43 
AnswerRe: .xls to .xml Pin
sugumar_winner6-Sep-06 18:43
sugumar_winner6-Sep-06 18:43 
Questioncdata for attribute Pin
NikoTanghe31-Aug-06 22:53
NikoTanghe31-Aug-06 22:53 
AnswerRe: cdata for attribute Pin
led mike1-Sep-06 5:14
led mike1-Sep-06 5:14 
Questionneed help with VoiceXML Pin
keroed_edmond31-Aug-06 4:04
keroed_edmond31-Aug-06 4:04 
AnswerRe: need help with VoiceXML Pin
Legolas_Bilbao31-Aug-06 23:35
Legolas_Bilbao31-Aug-06 23:35 
QuestionXml object and weird "?" characters Pin
tobycow631-Aug-06 2:46
tobycow631-Aug-06 2:46 
AnswerRe: Xml object and weird "?" characters Pin
Michael Dunn6-Sep-06 19:27
sitebuilderMichael Dunn6-Sep-06 19:27 
QuestionAllowing any element in a complex element Pin
impeham31-Aug-06 2:24
impeham31-Aug-06 2:24 
AnswerRe: Allowing any element in a complex element Pin
led mike1-Sep-06 5:13
led mike1-Sep-06 5:13 
QuestionRe: Allowing any element in a complex element Pin
impeham2-Sep-06 22:14
impeham2-Sep-06 22:14 
QuestionSmalltalk to XML conversion Pin
Tanmay S. Limaye31-Aug-06 0:29
Tanmay S. Limaye31-Aug-06 0:29 
QuestionXSL in Jscript, and passing Jscript vars in XSL Pin
wallyson29-Aug-06 8:57
wallyson29-Aug-06 8:57 
QuestionEscaping quotes in XML Pin
richiemac29-Aug-06 5:26
richiemac29-Aug-06 5:26 
AnswerRe: Escaping quotes in XML Pin
led mike29-Aug-06 6:18
led mike29-Aug-06 6:18 
GeneralRe: Escaping quotes in XML Pin
richiemac29-Aug-06 7:08
richiemac29-Aug-06 7:08 

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.