Android, simple-xml, how to declare a list of elements?

前端 未结 2 590
我在风中等你
我在风中等你 2021-01-02 01:06

I have this data structure:



 
  
   aaa         


        
2条回答
  •  自闭症患者
    2021-01-02 01:38

    I answer my own question to state I probably had a mistake with the xml definition, which should be:

    
     
      
       
        
         aaa
         300
        
        
         bbb
         450
        
       
       
      
       
        
         yyy
         100
        
         
         zzz
         240
        
       
      
     
    
    

    This way I can easily parse it to "Estates", "Providers" and "Estate" classes, the first two having an ElementList to contain the inner list.

    This closes the question.

提交回复
热议问题