Please observe following XML namespace and schemaLocation. \[code\]<agr:ABWInvoice xsi:schemaLocation="http://services.agresso.com/schema/ABWInvoice/2011/11/14 http://services.agresso.com/schema/ABWInvoice/2011/11/14/ABWInvoice.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:agrlib="http://services.agresso.com/schema/ABWSchemaLib/2011/11/14" xmlns:agr="http://services.agresso.com/schema/ABWInvoice/2011/11/14"></agr:ABWInvoice>\[/code\]
I have added namespaces in following way, whiche seems working fine:\[code\]XmlSerializerNamespaces ns = new XmlSerializerNamespaces();ns.Add("xsi", "http://www.w3.org/2001/XMLSchema-instance");ns.Add("agrlib", "http://services.agresso.com/schema/ABWSchemaLib/2011/11/14");ns.Add("agr", "http://services.agresso.com/schema/ABWInvoice/2011/11/14");\[/code\]
But, how to add following schemalocation?xsi:schemaLocation="http://services.agresso.com/schema/ABWInvoice/2011/11/14 http://services.agresso.com/schema/ABWInvoice/2011/11/14/ABWInvoice.xsd"
I have added namespaces in following way, whiche seems working fine:\[code\]XmlSerializerNamespaces ns = new XmlSerializerNamespaces();ns.Add("xsi", "http://www.w3.org/2001/XMLSchema-instance");ns.Add("agrlib", "http://services.agresso.com/schema/ABWSchemaLib/2011/11/14");ns.Add("agr", "http://services.agresso.com/schema/ABWInvoice/2011/11/14");\[/code\]
But, how to add following schemalocation?xsi:schemaLocation="http://services.agresso.com/schema/ABWInvoice/2011/11/14 http://services.agresso.com/schema/ABWInvoice/2011/11/14/ABWInvoice.xsd"