1 package org.esigate.xml; 2 3 import java.util.Iterator; 4 5 import javax.xml.namespace.NamespaceContext; 6 7 class HtmlNamespaceContext implements NamespaceContext { 8 9 @Override 10 public Iterator<String> getPrefixes(String s) { 11 return null; 12 } 13 14 @Override 15 public String getPrefix(String s) { 16 return null; 17 } 18 19 @Override 20 public String getNamespaceURI(String s) { 21 if ("html".equals(s)) { 22 return "http://www.w3.org/1999/xhtml"; 23 } 24 return null; 25 } 26 27 }