Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - How to build hierarchical XML from DataSet >Thread Next - Re: How to build hierarchical XML from DataSet Re: How to build hierarchical XML from DataSetTo: NULL Date: 6/12/2008 1:23:00 PM gamesforums@h... wrote: > 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. Then don't use a DataSet but use XmlWriter or XmlDocument to create the XML as needed. Or if you need to use the DataSet one way to get the required result is to write an XSLT stylesheet that transforms the XML as needed. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
