In my root node I want to put the attribute xsi:noNamespaceSchemaLocation so that I can get the document to validate
I want this
Code:<CONTENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContentList.xsd">
But I keep getting this
This is what I'm doing...Code:<CONTENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="ContentList.xsd">
Does anyone know what I need to do? just point me in the right directionCode:XmlDocument outputData = new XmlDocument(); XmlNode currentNode = outputData.AppendChild(outputData.CreateElement("CONTENT")); XmlAttribute xmlAttribute = xmlNode.Attributes.Append(outputData.CreateAttribute("xsi:noNamespaceSchemaLocation")); xmlAttribute.Value = "ContentList.xsd";![]()


Reply With Quote