Here is the required XML format that I am looking for:
<mf:package
xmlns="urn:x-lexisnexis:content:manifest:global:1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:x-lexisnexis:content:manifest:global:1 sch_manifest.xsd"
mf:mf="urn:x-lexisnexis:content:manifest:global:1">
What I am getting is:
<mf:package
xmlns="urn:x-lexisnexis:content:manifest:global:1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:x-lexisnexis:content:manifest:global:1 sch_manifest.xsd"
xmlns:mf="urn:x-lexisnexis:content:manifest:global:1">
The code I am using is:
using (XmlWriter writer = XmlWriter.Create(parentPathPackage + packageID + "_man.xml", settings))
{
writer.WriteStartElement("mf", "package", "urn:x-lexisnexis:content:manifest:global:1");
writer.WriteAttributeString("", "xmlns", null, "urn:x-lexisnexis:content:manifest:global:1");
writer.WriteAttributeString("xmlns", "xsi", null, "http://www.w3.org/2001/XMLSchema-instance");
writer.WriteAttributeString("xsi", "schemaLocation", null, "urn:x-lexisnexis:content:manifest:global:1 sch_manifest.xsd");
What am I doing wrong here?