java - How to write xml in asset folder -


i want write below text in xml tag. have tried says xml not in formated .

<questions>public class xyz {    public static void main(string args[]) {       for(int = 0; < 2; i++) {          for(int j = 2; j>= 0; j--) {             if(i == j) break;             system.out.println("i=" + + " j="+j);          }       }    } }</questions> 

you need add cdata tags make xml valid.

<questions> <![cdata[ public class xyz {    public static void main(string args[]) {       for(int = 0; < 2; i++) {          for(int j = 2; j>= 0; j--) {             if(i == j) break;             system.out.println("i=" + + " j="+j);          }       }    } } ]]> </questions> 

Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -