如何解析XML Plist

时间:2018-08-17 12:50:31

标签: java android xml

如何将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>

0 个答案:

没有答案