java - How to write xml in asset folder -
this question has answer here:
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
Post a Comment