Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to WriteXML as hierarchical XML

From: "ad" <flying@----.---.---.-->
To: NULL
Date: 3/1/2006 11:35:00 AM
There are four areas in my company , every employees in my company have his
duty area.
I use a select join statement to make a view form Area and Employee table
like below.

I want to make a hierarchical XML form the view.
The XML is like below

How can I do?


the view:

Area        Employee
----------------------------------------
      North Mary
      North John
      North Max
      East Kai
      West Jina
      West John
      South Tim
      South Peter

the  hierarchical  XML

<?xml version="1.0"?>
<AreaEmployee>
<Area>
 North
 <Employee>
  Mary
 </Employee>
</Area>
<Area>
 North
 <Employee>
  John
 </Employee>
</Area>
<Area>
 North
 <Employee>
  Max
 </Employee>
</Area>
<Area>
 East
 <Employee>
  Kai
 </Employee>
</Area>
<Area>
 West
 <Employee>
  Jina
 </Employee>
</Area>

,,..............................

</AreaEmployee>





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