# fn:concat - XPath XQuery Reference

Returns the concatenation of the string values of the arguments. The two-argument form of
         this function defines the semantics of the "||" operator.deterministiccontext-independentfocus-independentThis function accepts two or more xs:anyAtomicType arguments and casts each
            one to xs:string. The function returns the xs:string that is
            the concatenation of the values of its arguments after conversion. If any argument is
            the empty sequence, that argument is treated as the zero-length string.The fn:concat function is specified to allow two or more arguments, which
            are concatenated together. This is the only function specified in this document that
            allows a variable number of arguments. This capability is retained for compatibility
            with . fn:concat('un', 'grateful')"ungrateful"fn:concat('Thy ', (), 'old ', "groans", "", ' ring',
                  ' yet', ' in', ' my', ' ancient',' ears.')"Thy old groans ring yet in my ancient ears."fn:concat('Ciao!',())"Ciao!"fn:concat('Ingratitude, ', 'thou ', 'marble-hearted', ' fiend!')"Ingratitude, thou marble-hearted fiend!"fn:concat(01, 02, 03, 04, true())"1234true"10 || '/' || 6"10/6"As mentioned in  Unicode normalization is not automatically
            applied to the result of fn:concat. If a normalized result is required,
               fn:normalize-unicode can be applied to the xs:string
            returned by fn:concat. The following XQuery:
let $v1 := "I plan to go to Mu"
let $v2 := "?nchen in September"
return concat($v1, $v2)where the "?" represents either the actual Unicode character COMBINING DIARESIS (Unicode
            codepoint U+0308) or "&#x0308;", will return:"I plan to go to Mu?nchen in September"where the "?" represents either the actual Unicode character COMBINING DIARESIS (Unicode
            codepoint U+0308) or "&#x0308;". It is worth noting that the returned value is not
            normalized in NFC; however, it is normalized in NFD. However, the following XQuery:
let $v1 := "I plan to go to Mu"
let $v2 := "?nchen in September"
return normalize-unicode(concat($v1, $v2))where the "?" represents either the actual Unicode character COMBINING DIARESIS (Unicode
            codepoint U+0308) or "&#x0308;", will return: "I plan to go to München in September"This returned result is normalized in NFC.