GHSYue
GHSYue
采纳率0%
2016-01-25 07:36 阅读 1.5k

Android Pull解析复杂XML文件:这个Xml文件Android该怎么解析???

<?xml version="1.0" encoding="UTF-8"?>
























  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • GHSYue GHSYue 2016-01-25 07:40

    <?xml version="1.0" encoding="UTF-8"?>

    <Student>
    
        <item name="张三"         id="0"/>
    
        <item name="李四"         id="1"/>
    
        <item name="王五"         id="2"/>
    
        <item name="赵强"         id="3"/>
    
        <item name="沈阳"         id="4"/>
    
    </Student>
    
    <Class>
    
        <item name="一班"             id="0"/>
    
        <item name="二班"             id="1"/>
    
        <item name="三班"             id="2"/>
    
        <item name="四班"             id="3"/>
    
        <item name="五班"             id="4"/>
    
    </Class>
    
    <Teacher>
    
        <item name="王老师"  id="0" 
            handler="com.test.teacher.wangTeacher"/>
    
        <item name="刘老师"  id="1" 
            handler="com.test.teacher.liuTeacher"/>
    
        <item name="赵老师"  id="2" 
            handler="com.test.teacher.zhaoTeacher"/>
    
        <item name="张老师"  id="3" 
            handler="com.test.teacher.zhangTeacher"/>
    
        <item name="高老师"  id="4"
            handler="com.test.teacher.gaoTeacher"/>
    
    </Teacher>
    

    name="pingguschool"
    clas="com.test.schoole.pingguSchool"/>

    <School
        name="beijingschoole"
        clas="com.test.schoole.beijingSchool"/>
    

    点赞 评论 复制链接分享
  • GHSYue GHSYue 2016-01-25 07:40

    <?xml version="1.0" encoding="UTF-8"?>

    <Student>
    
        <item name="张三"         id="0"/>
    
        <item name="李四"         id="1"/>
    
        <item name="王五"         id="2"/>
    
        <item name="赵强"         id="3"/>
    
        <item name="沈阳"         id="4"/>
    
    </Student>
    
    <Class>
    
        <item name="一班"             id="0"/>
    
        <item name="二班"             id="1"/>
    
        <item name="三班"             id="2"/>
    
        <item name="四班"             id="3"/>
    
        <item name="五班"             id="4"/>
    
    </Class>
    
    <Teacher>
    
        <item name="王老师"  id="0" 
            handler="com.test.teacher.wangTeacher"/>
    
        <item name="刘老师"  id="1" 
            handler="com.test.teacher.liuTeacher"/>
    
        <item name="赵老师"  id="2" 
            handler="com.test.teacher.zhaoTeacher"/>
    
        <item name="张老师"  id="3" 
            handler="com.test.teacher.zhangTeacher"/>
    
        <item name="高老师"  id="4"
            handler="com.test.teacher.gaoTeacher"/>
    
    </Teacher>
    

    name="pingguschool"
    clas="com.test.schoole.pingguSchool"/>

    <School
        name="beijingschoole"
        clas="com.test.schoole.beijingSchool"/>
    

    点赞 评论 复制链接分享

相关推荐