*/ String documentURI = null; try { Method method = Document.class.getMethod("getDocumentURI",null); documentURI = (String)method.invoke(n.getOwnerDocument(),null); } catch (NoSuchMethodException ex) { } catch (IllegalAccessException ex) { } catch (InvocationTargetException ex) { }
public URI getNodeUri() throws XQException	{		try		{			NodeValue n = (NodeValue)item.convertTo(Type.NODE);			Document doc = n.getOwnerDocument();			if(doc != null)			{				String documentURI = n.getOwnerDocument().getDocumentURI();				if(documentURI != null)				{					return new URI(documentURI);				}			}						return null;					}		catch(XPathException xpe)		{			throw new XQException(xpe.getMessage());		}		catch(URISyntaxException use)		{			throw new XQException(use.getMessage());		}	}