public Element getParameterElement(String xml,String attribute, String value)
	{
		if(xml==null){System.out.println("ERROR:SSAP_XMLTools:getParameterElement: XML message is null");return null;}

		Document doc=null;
		try {
			doc = builder.build(new ByteArrayInputStream(xml.getBytes()));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 

		if(doc==null) {System.out.println("ERROR:SSAP_XMLTools:getParameterElement:doc is null");return null;}

		Element root = doc.getRootElement();
		Namespace ns = root.getNamespace();


		List<Element> parameters = root.getChildren("parameter", ns);
		int ip;
		for(ip=0;ip<parameters.size();ip++)
			if( parameters.get(ip).getAttributeValue( attribute ).equals( value ))break;

		if(!(ip<parameters.size())) {System.out.println("ERROR:SSAP_XMLTools:getParameterElement:parameter("
				+attribute+"="+value+") not found!");return null;}

		//System.out.println("###### "+parameters.get(ip).getValue() );

		return parameters.get(ip);
	}