Click here to Skip to main content
15,914,419 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Combo Properties & Events Help Please Pin
cgai25-Oct-06 5:11
cgai25-Oct-06 5:11 
GeneralRe: Combo Properties & Events Help Please Pin
Dave Kreskowiak25-Oct-06 5:30
mveDave Kreskowiak25-Oct-06 5:30 
GeneralRe: Combo Properties & Events Help Please Pin
cgai25-Oct-06 6:36
cgai25-Oct-06 6:36 
Questionrefresh a form Pin
steve_rm24-Oct-06 7:22
steve_rm24-Oct-06 7:22 
AnswerRe: refresh a form Pin
Dave Kreskowiak24-Oct-06 7:45
mveDave Kreskowiak24-Oct-06 7:45 
QuestionRead an XML file as a datafile Pin
sybux200024-Oct-06 4:52
sybux200024-Oct-06 4:52 
AnswerRe: Read an XML file as a datafile Pin
Dave Kreskowiak24-Oct-06 5:04
mveDave Kreskowiak24-Oct-06 5:04 
GeneralRe: Read an XML file as a datafile Pin
sybux200025-Oct-06 21:03
sybux200025-Oct-06 21:03 
thx for help but I still have got a problem.

Here is an extract of my xml file :

< ?xml version = '1.0'?>
< PAGE>
   < DATA>
      < DATA>
         < seance i_seance="218765344" d_date="20060919" d_debut="13:30" d_fin="15:00" d_jour="mardi" n_semaine="38" type_seance="Enseignement">
            < x_remarques>Groupe A non bilingue et B</x_remarques>
            < ressource type="enseignant" libelle="MR X"/>
            < ressource type="volee" libelle="Information documentaire, 2006-2007, S1"/>
            < ressource type="matiere" code="7612F" libelle="Sociologie des organisations (Cours)"/>
            < ressource type="classe" libelle="ID1B"/>
            < ressource type="classe" libelle="ID1A Non bilingue"/>
            < ressource type="espace" libelle="C101"/>
         < /seance>
         < seance i_seance="218766590" d_date="20060919" d_debut="15:15" d_fin="16:45" d_jour="mardi" n_semaine="38" type_seance="Enseignement">
            < x_remarques>Groupes A non bilingue et B</x_remarques>
            < ressource type="enseignant" libelle="MR A"/>
            < ressource type="enseignant" libelle="MR B"/>
            < ressource type="volee" libelle="Information documentaire, 2006-2007, S1"/>
            < ressource type="matiere" code="7113F" libelle="Introduction � l&apos;archivistique (Cours)"/>
            < ressource type="classe" libelle="ID1B"/>
            < ressource type="classe" libelle="ID1A Non bilingue"/>
            < ressource type="espace" libelle="C101"/>
         < /seance>
      < /DATA>
   < /DATA>
< /PAGE>


I've written the following code but doesn't not display it well :
Sub Main()
        Dim myData As New DataSet
        Dim mDataRow, mdr As DataRow

        myData.ReadXml("test.xml")

        For Each mDataRow In myData.Tables(1).Rows
            System.Console.WriteLine("date : " & mDataRow("d_date"))
            System.Console.WriteLine("Heure début : " & mDataRow("d_debut"))
            System.Console.WriteLine("Heure fin : " & mDataRow("d_fin"))
            System.Console.WriteLine("Jour : " & mDataRow("d_jour"))
            System.Console.WriteLine("Type Séance : " & mDataRow("type_seance"))
            For Each mdr In myData.Tables(2).Rows
                System.Console.WriteLine(mdr(1) & " : " & mdr(2))
            Next
        Next
        System.Console.ReadLine()
    End Sub


Can some1 tell me where I'm wrong .

thx
QuestionOne last hope Pin
Pete Newman24-Oct-06 4:09
Pete Newman24-Oct-06 4:09 
AnswerRe: One last hope Pin
nlarson1124-Oct-06 4:15
nlarson1124-Oct-06 4:15 
GeneralRe: One last hope Pin
Pete Newman24-Oct-06 4:23
Pete Newman24-Oct-06 4:23 
GeneralRe: One last hope Pin
Pete Newman24-Oct-06 4:25
Pete Newman24-Oct-06 4:25 
GeneralRe: One last hope Pin
Pete Newman24-Oct-06 4:44
Pete Newman24-Oct-06 4:44 
GeneralRe: One last hope [modified] Pin
nlarson1124-Oct-06 4:52
nlarson1124-Oct-06 4:52 
QuestionStatus Message Pin
jds120724-Oct-06 3:16
jds120724-Oct-06 3:16 
AnswerRe: Status Message Pin
nlarson1124-Oct-06 4:19
nlarson1124-Oct-06 4:19 
GeneralRe: Status Message Pin
jds120724-Oct-06 4:46
jds120724-Oct-06 4:46 
GeneralRe: Status Message Pin
Dave Kreskowiak24-Oct-06 4:55
mveDave Kreskowiak24-Oct-06 4:55 
GeneralRe: Status Message Pin
jds120724-Oct-06 5:21
jds120724-Oct-06 5:21 
GeneralRe: Status Message Pin
nlarson1124-Oct-06 4:55
nlarson1124-Oct-06 4:55 
GeneralRe: Status Message Pin
jds120724-Oct-06 5:22
jds120724-Oct-06 5:22 
Questionvb file in .net Pin
Ballita24-Oct-06 0:46
Ballita24-Oct-06 0:46 
AnswerRe: vb file in .net Pin
Dave Sexton24-Oct-06 2:13
Dave Sexton24-Oct-06 2:13 
AnswerRe: vb file in .net Pin
Dave Kreskowiak24-Oct-06 4:51
mveDave Kreskowiak24-Oct-06 4:51 
QuestionHelp Pin
Evalee23-Oct-06 23:07
Evalee23-Oct-06 23:07 

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.