Java tutorial
//package com.java2s; //License from project: Common Public License import org.w3c.dom.Document; import org.w3c.dom.Element; import sun.reflect.generics.reflectiveObjects.NotImplementedException; public class Main { /** * @param doc * @param fragId * @return */ public static Element resolveDitaFragmentId(Document doc, String fragId) { String topicId = null; String elemId = null; if (fragId.contains("/")) { String[] parts = fragId.split("/"); topicId = parts[0]; elemId = parts[1]; } else { topicId = fragId; } // FIXME: Use xpaths to resolve the IDs as appropriate throw new NotImplementedException(); } }