public static function getXml( $url, $context )
	{
		$xml = null;
		$xml_string = XBRL::getXmlInner( $url, $context );
		if ( $xml_string )
		{
			try
			{
				// Replace the handler because the status test handler traps any error and terminates the session
				$previousHandler = set_error_handler(null);
				$xml = @new SimpleXMLElement( $xml_string );
				set_error_handler( $previousHandler );
			}
			catch( Exception $ex )
			{

			}

			// Example using xpath
			// $elements = $xml->xpath( "/default:schema/default:element[@name='AccountingPolicies']" );
			if ( $xml !== null )
			{
				$ns = $xml->getDocNamespaces();
				foreach ( $ns as $prefix => $namespace )
				{
					$xml->registerXPathNamespace( empty( $prefix ) ? "default" : $prefix, $namespace );
				}
			}
		}

		return $xml;
	}