Java tutorial
//package com.java2s; //License from project: Common Public License import org.w3c.dom.Element; public class Main { /** * @param topicRef * @return */ public static boolean isMapReference(Element topicRef) { return (topicRef.hasAttribute("href") && topicRef.hasAttribute("format") && topicRef.getAttribute("format").equals("ditamap")); } }