0
我想为以下树型结构生成XML。我附上了照片。生成的xml应该如何生成以下xml
<services>
<service>
<name>Service 1</name>
<categories>
<category>
<name>Cateogry 1</name>
<methods>
<method>
<name>Method 1</name>
</method>
</methods>
</category>
</categories>
</service>
<service>
<name>Service 2</name>
<categories>
<category>
<name>Cateogry 1</name>
<methods>
<method>
<name>Method 1</name>
</method>
</methods>
</category>
</categories>
</service>
<service>
<name>Service 3</name>
<categories>
<category>
<name>Cateogry 1</name>
<methods>
<method>
<name>Method 1</name>
</method>
</methods>
</category>
</categories>
</service>
</services>
Tree Image http://i50.tinypic.com/2ce5b1s.jpg
仍然没有答案:( – Mohsan 2010-06-15 05:05:12