// try to allow older namespaces
if( element.getLocalName().equals( "application" )
&& element.getNamespaceURI().startsWith( "http://research.sun.com/wadl" ) )
{
isWADL11 = false;
String content = xmlObject.xmlText();
content = content.replaceAll( "\"" + element.getNamespaceURI() + "\"", "\"" + Constants.WADL11_NS + "\"" );
xmlObject = ApplicationDocument.Factory.parse( content );
}
else if( !element.getLocalName().equals( "application" )
|| !element.getNamespaceURI().equals( Constants.WADL11_NS ) )