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

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -