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. Accessing an XML sequence

Accessing an XML sequence

Scheduled Pinned Locked Moved XML / XSL
csharpxmlquestion
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.
  • B Offline
    B Offline
    Bernhard Hofmann
    wrote on last edited by
    #1

    Hi I'm trying to access a sequence which is part of a node in an XML file. <property pr_ref="ABC" ... > <sellingpoint text="HALLWAY" /> <sellingpoint text="DINING ROOM" /> <sellingpoint text="KITCHEN" /> </property> I can iterate through the "property" nodes and retrieve their columns (pr_ref) but how on earth do I access the sequence of selling points? I've tried childrows and parents rows and I'm lost! I'm using VB.NET and I have the entire file in a DataSet. The second table of the dataset seems to contain ALL of the sellingpoint rows, not just those related to the one property.:confused: I'm desperate! Bernhard Don't worry, nobody lives forever.

    P 1 Reply Last reply
    0
    • B Bernhard Hofmann

      Hi I'm trying to access a sequence which is part of a node in an XML file. <property pr_ref="ABC" ... > <sellingpoint text="HALLWAY" /> <sellingpoint text="DINING ROOM" /> <sellingpoint text="KITCHEN" /> </property> I can iterate through the "property" nodes and retrieve their columns (pr_ref) but how on earth do I access the sequence of selling points? I've tried childrows and parents rows and I'm lost! I'm using VB.NET and I have the entire file in a DataSet. The second table of the dataset seems to contain ALL of the sellingpoint rows, not just those related to the one property.:confused: I'm desperate! Bernhard Don't worry, nobody lives forever.

      P Offline
      P Offline
      Philip Patrick
      wrote on last edited by
      #2

      Well, if you have created the class for handling your dataset (Generate code or something), then you should be able to use a function of propertyRow, which named like GetSellingpointRows(). If you don't see it, then you can try using GetChildRows anyway. I can't help you much with VB, but here is a link to IBuySpy[^]. You can download a VB version and see how they did this (look in PortalCfg.vb and Components/Configuration.vb): Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

      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