problem with xsi:SchemaLocation
I have a template XML file which has xsi:SchemaLocation and I also need another xsi:SchemaLocation somewhere else within the document.
CODE :-
elShowInvoice.SetAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
elShowInvoice.SetAttribute("xsi:schemaLocation", "http://www.openapplications.org/oagis/9" + @"C:\OAGIS\9.0\BODs\Developer\ShowInvoice.xsd" );
[u]WHAT IT LOOKS LIKE:-</u>
<oat:transmission xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.yahoo.net/oagis/9 .\transmission.xsd" xmlns:oat="http://www.yahoo.net/oagis/9">
<oat:header>7e118072-470c-42d4-9bf5-e783034d1517</oat:header>
<oat:body>
<oat:transaction>
<oa:ShowInvoice xmlns:oa="http://www.openapplications.org/oagis/9" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:user="urn:the-xml-files:xslt-csharp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://www.openapplications.org/oagis/9C:\OAGIS\9.0\BODs\Developer\ShowInvoice.xsd"
[u]WHAT I WANT IT TO LOOK LIKE:-</u>
<oat:transmission xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.yahoo.net/oagis/9 .\transmission.xsd" xmlns:oat="http://www.yahoo.net/oagis/9">
<oat:header>7e118072-470c-42d4-9bf5-e783034d1517</oat:header>
<oat:body>
<oat:transaction>
<oa:ShowInvoice xmlns:oa="http://www.openapplications.org/oagis/9" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:user="urn:the-xml-files:xslt-csharp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openapplications.org/oagis/9C:\OAGIS\9.0\BODs\Developer\ShowInvoice.xsd"
Please help me.
|