Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to build hierarchical XML from DataSet

From: gamesforums@-------.---
To: NULL
Date: 6/12/2008 3:20:00 AM
Hi!

I need to build the following XML structure in my businnesslayer in
VB.NET.

<ProductionDataExtract>
  <Region region="South">
    <MonthToDate>
      <ProductionBudget>2338</ProductionBudget>
    </MonthToDate>
  </Region>
</ProductionDataExtract>

My problem is that when i use DataSet.getXML() i will get a flat file
structure on the xml returned.

What I want is the following:
<ProductionDataExtract> (Root node, parent)
<Region> (child node of ProductionDataExtract, but parent to
MonthToDate)
<MonthToDate> (child node of Region, but parent to ProductionBudget)
<ProductionBudget> (child node of MonthToDate)

I have tried using ADO.NET's DataRelation Object, but of course this
wont work as I have no Key's between the parent and child elements.

So any suggestion are really appreciated! :)

Regards,
Mcad







transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent