Java Code Examples for org.w3c.dom.Node.lookupPrefix()

The following are Jave code examples for showing how to use lookupPrefix() of the org.w3c.dom.Node class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: java-tools   File: XmlTreeOperations.java   Source Code and License Vote up 5 votes
public static String lookupPrefix( Node node, String uri )
{
	if ( uri != null && uri.equals("http://www.w3.org/XML/1998/namespace") )
		return "xml";

	return node.lookupPrefix( uri );
}