2013年9月15日 星期日

jsp-xml


java-xml


<%!
// example : String s0916=xml.run("<1>aa</1>","1");
private static class xml {
public String run(String values, String key)
{
String result="";
int b=values.indexOf("<"+key+">");
int e=values.indexOf("</"+key+">");
result=values.substring(b+key.length()+2,e);
return result;
}
 }
%>





沒有留言:

張貼留言