tags:

views:

5

answers:

0

Hi,

I want to create an xml element having two namespace as below:

element name="Root" xmlns:xsi="myXSI" xmlns:xsd="myXSD"

I have checked out with the existing APIs, but it is not getting in this form. I am getting as

Root xmlns:xsd:xsi="myXSI" xmlns:xmlns:xsd="myXSD"

I am using this APIss as below:

xmlTextWriterWriteAttributeNS(xmlWriter, BAD_CAST "xmlns:xsd", BAD_CAST "xsi" , BAD_CAST "myXSD", BAD_CAST "myXSI");