public void setNodeHtml(NodeList nl,String html)
    {
	try
	    {
		for(int i=0;i<nl.getLength();++i)
		    {
			setNodeHtml(nl.item(i).getChildNodes(),html);
			if(!(nl.item(i) instanceof org.w3c.dom.Element))
			    continue;
			org.w3c.dom.Element el=(org.w3c.dom.Element)nl.item(i);
			String elid=el.getAttribute("ID");
			if(el.getAttribute("BeforeHtml")!=null && el.getAttribute("BeforeHtml").length()>0)
			    {
				Pattern p = Pattern.compile(".*<!--\\s\"Before_"+el.getTagName()+"_"+elid+"\"\\s-->"+
							    "(.*)<!--\\s\"Before_"+el.getTagName()+"_"+elid+"_End\"\\s-->.*",
							    Pattern.DOTALL|Pattern.MULTILINE);
				Matcher m = p.matcher(html);
				boolean b=m.matches();
				if(b)
				    {
					String txt=m.group(1);
					el.setAttribute("BeforeHtml",txt);
				    }
			    }
			if(el.getAttribute("AfterHtml")!=null && el.getAttribute("AfterHtml").length()>0)
			    {
				Pattern p = Pattern.compile(".*<!--\\s\"After_"+el.getTagName()+"_"+elid+"\"\\s-->"+
						    "(.*)<!--\\s\"After_"+el.getTagName()+"_"+elid+"_End\"\\s-->.*",
						    Pattern.DOTALL|Pattern.MULTILINE);
				Matcher m = p.matcher(html);
				boolean b=m.matches();
				if(b)
				    {
					String txt=m.group(1);
					el.setAttribute("AfterHtml",txt);
				    }
			    }
		    }
	    }
	catch(Exception e){e.printStackTrace();}
    }