<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.QName.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.QName</api:function-name><api:suggest>fn.qname</api:suggest><api:suggest>fn</api:suggest><api:suggest>qname</api:suggest><api:function-link mode="xquery" fullname="fn:QName">/apidoc/8.0/fn:QName.xml</api:function-link><api:function mode="javascript" name="QName" type="builtin" lib="fn" category="QNameBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.QName"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">
  Returns an <code>xs:QName</code> with the namespace URI given in $paramURI.
  If $paramURI is the zero-length string or the empty sequence, it
  represents "no namespace"; in this case, if the value of $paramQName
  contains a colon (:), an error is raised [err:FOCA0002].
  The prefix (or absence of a prefix) in $paramQName is retained in
  the returned xs:QName value. The local name in the result is taken
  from the local part of $paramQName.
</p>
</api:summary><api:params><api:param name="paramURI" type="xs:string?"><api:param-description>
A namespace URI, as a string.
  </api:param-description><api:param-name>paramURI</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="paramQName" type="xs:string"><api:param-description>
A lexical qualified name (xs:QName), a string of the form "prefix:localname"
or "localname".
  </api:param-description><api:param-name>paramQName</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>xs.QName</api:return><api:usage>
<p xmlns="http://www.w3.org/1999/xhtml">
  If $paramQName does not have the correct lexical form for
  <code>xs:QName</code> an error is raised [err:FOCA0002].
</p><p xmlns="http://www.w3.org/1999/xhtml">
  Note that unlike xs:QName this function does not require an
  <code>xs:string</code> literal as the argument.
</p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.QName("http://www.example.com/example", "person")

=&gt; an xs:QName with namespace URI =
   "http://www.example.com/example",
   local name = "person", and
   prefix = "".

fn.QName("http://www.example.com/example", "ht:person")

=&gt; an xs:QName with namespace URI =
   "http://www.example.com/example",
   local name = "person",
   and prefix = "ht".
</pre></api:example></api:function></api:function-page>