Results 1 to 3 of 3

Thread: [2008] XmlReader

Threaded View

  1. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: [2008] XmlReader

    try this. it is possible to achieve what you wanted using ReadToFollowing

    vb Code:
    1. Using SudokuReader As XmlReader = XmlReader.Create(Path)
    2.     While Not SudokuReader.EOF
    3.  
    4.          SudokuReader.ReadToFollowing("Casa")
    5.          If SudokuReader.GetAttribute("name") = String.Empty Then
    6.              Exit While
    7.          End If
    8.          MsgBox(SudokuReader.GetAttribute("name"))
    9.          MsgBox(SudokuReader.ReadElementContentAsString)
    10.  
    11.     End While
    12. End Using
    Last edited by .paul.; Sep 14th, 2008 at 09:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width