Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. parse out the member name value

parse out the member name value

Scheduled Pinned Locked Moved XML / XSL
designquestioncsharpvisual-studiotools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    califgal
    wrote on last edited by
    #1

    hi, how do i parse out the value "system.web.ui.design.silverlightcontrols.collectioneditorbase" from below? <member name="T:System.Web.UI.Design.SilverlightControls.CollectionEditorBase"> <summary> Provides a utility class for Visual Studio property window behavior when editing media chapters. </summary> </member> I tried using reader.Name, in which case reader is an instance of XMLTextReader class, but it gets only "member" string instead of the value after "=". while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. { if (reader.Name == "members") { sw.Write(reader.Name); sw.Write("\r\n"); } break; } case XmlNodeType.Text: //Display the text in each element. sw.Write(reader.Value); break; case XmlNodeType.EndElement: //Display the end of the element. sw.Write(reader.Name); sw.Write("\r\n"); break; } }

    L 1 Reply Last reply
    0
    • C califgal

      hi, how do i parse out the value "system.web.ui.design.silverlightcontrols.collectioneditorbase" from below? <member name="T:System.Web.UI.Design.SilverlightControls.CollectionEditorBase"> <summary> Provides a utility class for Visual Studio property window behavior when editing media chapters. </summary> </member> I tried using reader.Name, in which case reader is an instance of XMLTextReader class, but it gets only "member" string instead of the value after "=". while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. { if (reader.Name == "members") { sw.Write(reader.Name); sw.Write("\r\n"); } break; } case XmlNodeType.Text: //Display the text in each element. sw.Write(reader.Value); break; case XmlNodeType.EndElement: //Display the end of the element. sw.Write(reader.Name); sw.Write("\r\n"); break; } }

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      I suggest you use www.w3schools.com and study the appropriate XML tutorials

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups