
 ===========================================
  Demonstrate XmlDocument and XmlNodeReader
 ===========================================

 ---------------------------------------------
  Recursively Walk XMLDOM to Access each Node
 ---------------------------------------------

  
  node: LectureNote
  attr: course=CSE681
  
  node: title
  text: XML Example #1
  
  node: reference
  
  node: title
  text: Programming Microsoft .Net
  
  node: author
  text: Jeff Prosise
  
  node: note
  attr: Company=Wintellect
  
  node: publisher
  text: Microsoft Press
  
  node: date
  text: 2002
  
  node: page
  text: 608
  
  node: comment
  text: Description of PCDATA


 ----------------------------------------
  Use DOM to Access Collections of Nodes
 ----------------------------------------

  Show each node with tagname "title"
  name: title
  text: XML Example #1
  name: title
  text: Programming Microsoft .Net


  Show names of all nodes
  name: LectureNote
  name: title
  name: reference
  name: title
  name: author
  name: note
  name: publisher
  name: date
  name: page
  name: comment


 ---------------------------------------------------
  Use XPath to select specific collections of nodes
 ---------------------------------------------------

  Names of children of reference node:
  tag: title
  tag: author
  tag: publisher
  tag: date
  tag: page


  Text of children of the root node
  tag: title
  val: XML Example #1
  tag: comment
  val: Description of PCDATA


 --------------------------------------------------
  Use XmlNodeReader to read each atom from XML doc
 --------------------------------------------------

  type : XmlDeclaration
  tag  : xml
  type : Comment
  value:  XML test case 
  type : Element
  tag  : LectureNote
  type : Element
  tag  : title
  type : Text
  value: XML Example #1
  type : EndElement
  tag  : title
  type : Element
  tag  : reference
  type : Element
  tag  : title
  type : Text
  value: Programming Microsoft .Net
  type : EndElement
  tag  : title
  type : Element
  tag  : author
  type : Text
  value: Jeff Prosise
  type : Element
  tag  : note
  type : EndElement
  tag  : note
  type : EndElement
  tag  : author
  type : Element
  tag  : publisher
  type : Text
  value: Microsoft Press
  type : EndElement
  tag  : publisher
  type : Element
  tag  : date
  type : Text
  value: 2002
  type : EndElement
  tag  : date
  type : Element
  tag  : page
  type : Text
  value: 608
  type : EndElement
  tag  : page
  type : EndElement
  tag  : reference
  type : Element
  tag  : comment
  type : Text
  value: Description of PCDATA
  type : EndElement
  tag  : comment
  type : EndElement
  tag  : LectureNote

