Code example for Element

Methods: getAttributegetAttributeNS

0
	 *  
	 * @param element The element to be processed 
	 * @return The meta data stored 
	 */ 
	static String getMetaData(Element element) {
		String label = element.getAttributeNS(INKSCAPE, "label");
		if ((label != null) && (!label.equals(""))) {
			return label;
		} 
		 
		return element.getAttribute("id");
	} 
	 
	/** 
	 * Get the style attribute setting for a given style information element (i.e. fill, stroke) 
	 *  
	 * @param element The element to be processed 
	 * @param styleName The name of the attribute to retrieve 
	 * @return The style value 
	 */ 
	static String getStyle(Element element, String styleName) {