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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. XML / XSL
  4. Error - Child row has multiple parents

Error - Child row has multiple parents

Scheduled Pinned Locked Moved XML / XSL
helpxmlquestion
2 Posts 2 Posters 1 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.
  • S Offline
    S Offline
    SavitaB
    wrote on last edited by
    #1

    I am calling datrelation.nested = true. But I get the error - “Child row has multiple parents" I am getting this because the dataset contains tables with such data. E.g. Here is my hierarchy Operator is parent of OperatorPriviligePair. OperatorPriviligePair is parent of Privilege But one privilege can be assigned to may operators. So the problem. Have you written a method WriteXML to override this? Or can you walk me through writing my own xml file with my dataset? I will highly appreciate your help. Savita

    G 1 Reply Last reply
    0
    • S SavitaB

      I am calling datrelation.nested = true. But I get the error - “Child row has multiple parents" I am getting this because the dataset contains tables with such data. E.g. Here is my hierarchy Operator is parent of OperatorPriviligePair. OperatorPriviligePair is parent of Privilege But one privilege can be assigned to may operators. So the problem. Have you written a method WriteXML to override this? Or can you walk me through writing my own xml file with my dataset? I will highly appreciate your help. Savita

      G Offline
      G Offline
      Gokulan Venattil
      wrote on last edited by
      #2

      Hi It will be helpful if you provide the exact xml format you want. You can use the XmlTextWriter and loop thru the dataset for creating the exact structure and data. Gokul

      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