如何将XML解析为对象
我想知道如何将XML转换为对象
我尝试了很多方法,但是我做不到
示例:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>id</key>
<integer>3</integer>
<key>code</key>
<string>myCode</string>
<key>title</key>
<string>myTitle</string>
<key>link</key>
<string>http://www.google.com/</string>
<key>message</key>
<string>This is the message;</string>
</dict>
</plist>