I am new to Xerces C++ library and I have a requirement to build XML Document from data stored in C++ Structure. The XML document so formed needs to be validated against XSD. My XML document should contain header section as:
<?xml version="1.0" encoding="UTF-8" ?>
<tns:MyMessage xmlns:tns="http://www.mypage.com/MyMessageFormat" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mypage.com/MyMessageFormat/MyMessage.xsd">

My query is do we have any API/function which can be used to refer schema document Location?
Alternatively, how can i add the below information to my XML document's header section using Xerces C++ Library:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mypage.com/MyMessageFormat/AdborUpdateMessage.xsd">

Please help me. Thanks in advance.