Proper Structure for Android XML resource file

UnegoBelanese

New Member
I can't figure out how to get proper XML Structure for resources in Android.I've saved recepies.xml into values folder, and would like to pars them.\[code\]<?xml version="1.0" encoding="UTF-8" standalone="yes"?><recepies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><recepie name="recepie1"> <item></item> <NumberOfPersons>1</NumberOfPersons> <Ingredients> <string></string> <string></string> </Ingredients> <Preparation></Preparation> <Energy>342</Energy> <Protein>8</Protein> <RecipeCategory>3</RecipeCategory></recepie>\[/code\]But, I get or "Invalid start tag", if I format it without recipies tag like this:\[code\]<?xml version="1.0" encoding="UTF-8" standalone="yes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?>\[/code\]I get, no more pseudo attributes allowed.If I use only this:\[code\]<?xml version="1.0" encoding="UTF-8"?>\[/code\]I get that markup is not well formed.I guess I'm missing something in basics of XML formatting, but I can't figure out what.
 
Back
Top