Hello friend, I am doing some web application where I am getting return xml as string as follows.<siteconfigurationinfor>\n <id>11</id>\n <siteid>DELH2I-4004-20</siteid>\n <sectors />\n <omini />\n <micro />\n <macro />\n <sitesector>\n <sectorid>31</sectorid>\n <sectorname>Sector1</sectorname>\n <clearance />\n <azimuth />\n <heightfromggound />\n <mounttype />\n <anttype />\n <tilt />\n </sitesector>\n <sitesector>\n <sectorid>32</sectorid>\n <sectorname>Sector2</sectorname>\n <clearance />\n <azimuth />\n <heightfromggound />\n <mounttype />\n <anttype />\n <tilt />\n </sitesector>\n <sitesector>\n <sectorid>33</sectorid>\n <sectorname>Sector3</sectorname>\n <clearance />\n <azimuth />\n <heightfromggound />\n <mounttype />\n <anttype />\n <tilt />\n </sitesector>\n</siteconfigurationinfor>I want to convert this XML into custom type. Can anyone help me out here. 解决方案 这篇关于将XML转换为对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-05 11:15