E
Ed
Hi All,
The sample code below doesn't work, but if you take out the Question
Mark character, "?" in front of the value "Print" of the "action"
attribute, it does work!
Does anyone here know an other workaround? Thanks in advance!
////////////////////////////////////////////////////////////Sample
code ////////////////////////////////////////////////////////
public class Questionmark_TEST{
public Questionmark_TEST(){}
public static void main(String [] args){
String XMLString="<?xml version=\"1.0\" encoding=\"UTF-8\"?
String OldNode = "<NodeOne action='Print?'/>";
String NewNode = "<NodeOne action='Print?'>empty</NodeOne>";
XMLString = XMLString.replaceAll(OldNode,NewNode);
System.out.println("new XMLString : "+XMLString.toString());
}
}
//////////////////////////////////////////Sample
code ///////////////////////////////////////////////////////////////////////////////////////////////
The sample code below doesn't work, but if you take out the Question
Mark character, "?" in front of the value "Print" of the "action"
attribute, it does work!
Does anyone here know an other workaround? Thanks in advance!
////////////////////////////////////////////////////////////Sample
code ////////////////////////////////////////////////////////
public class Questionmark_TEST{
public Questionmark_TEST(){}
public static void main(String [] args){
String XMLString="<?xml version=\"1.0\" encoding=\"UTF-8\"?
<categories><NodeOne action='Print?'/></categories>" ;
String OldNode = "<NodeOne action='Print?'/>";
String NewNode = "<NodeOne action='Print?'>empty</NodeOne>";
XMLString = XMLString.replaceAll(OldNode,NewNode);
System.out.println("new XMLString : "+XMLString.toString());
}
}
//////////////////////////////////////////Sample
code ///////////////////////////////////////////////////////////////////////////////////////////////