将此层次结构转换为xml?困惑的
我以前没有真正使用过xml,但我想知道如何将这个层次结构转换成xml格式,如果这样做有意义的话:))谢谢将此层次结构转换为xml?困惑的,xml,xsd,Xml,Xsd,我以前没有真正使用过xml,但我想知道如何将这个层次结构转换成xml格式,如果这样做有意义的话:))谢谢 你不能做这样的事吗 <agent> <name>agentName</name> <email>agentEmail</email> <properties> <property> <postcode>myPostcode</p
你不能做这样的事吗
<agent>
<name>agentName</name>
<email>agentEmail</email>
<properties>
<property>
<postcode>myPostcode</postcode>
...
</property>
...
</properties>
</agent>
代理名称
代理邮件
我的邮政编码
...
...
<agent>
<name>agentName</name>
<email>agentEmail</email>
<properties>
<property>
<postcode>myPostcode</postcode>
...
</property>
...
</properties>
</agent>
<agent>
<agentname></agentname>
<email></email>
<allproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
</allproperty>
</agent>