Code example for Element

Methods: setAttribute, setTextContent

0
		return null; 
	} 
	 
	private Element createOryxNsElement(String name, String textContent){
		Element el = doc.createElement("span");
		el.setAttribute("class", "oryx-"+name);
		el.setTextContent(textContent);
		return el;
	} 
	 
	private Element createRazielNsResourceElement(String name, String resource){
		Element el = doc.createElement("a");
		el.setAttribute("rel", "raziel-"+name);
		el.setAttribute("href", resource);
		return el;
	} 
	private Element createOryxNsResourceElement(String name, String resource){
		Element el = doc.createElement("a");
		el.setAttribute("rel", "oryx-"+name);
		el.setAttribute("href", resource);
		return el;