/** * Creates keyword type element. * * @param kb * @return */ private static Element createKeywordTypeElt(KeywordBean kb) { Element type = new Element("type", NS_GMD); Element keywordTypeCode = new Element("MD_KeywordTypeCode", NS_GMD); keywordTypeCode.setAttribute( "codeList", "http://www.isotc211.org/2005/resources/codeList.xml#MD_KeywordTypeCode"); keywordTypeCode.setAttribute("codeListValue", kb.getType()); type.addContent(keywordTypeCode); return type; }