Здравствуйте, OlegRaim, Вы писали:
OR>Доброго времени суток. Нужна помощь!
OR>Нужен атрибут:
OR>xsi:noNamespaceSchemaLocation="inventoryUpdateRequest.xsd"
OR>делаю следующее:
OR>XmlAttribute attr = doc.CreateAttribute("xsi:noNamespaceSchemaLocation");
OR>attr.InnerText = "inventoryUpdateRequest.xsd";
OR>root.Attributes.Append(attr);
OR>Получаю: noNamespaceSchemaLocation="inventoryUpdateRequest.xsd"
OR>Вопрос: куда девается xsi: и как сделать чтобы оно не исчезало?
...
XmlAttribute attr = doc.CreateAttribute("noNamespaceSchemaLocation", "http://www.w3.org/2001/XMLSchema-instance");
...
этот перегруженный метод CreateAttribute сам подставит стандартный префикс xsi