I have a Access/VBA client that exports xml to the local drive, then posts it
over http to an aspx page. The aspx page consumes it, then builds itself
based on the xml data.
This works find only if I first mannually change the root entry's namespace
url as shown below. Does anyone know how I can get the two (cleint xml
export and aspx xml consume) to work together with the appropriate namespace?
Here is the top three lines of my xml export (prior to mannually changing it):
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
xmlns:od="urn:schemas-microsoft-com:officedata">
<xsd:schema>
After mannually changing the root entry url it works fine with:
<root xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:od="urn:schemas-microsoft-com:officedata">
Also, below is the error my aspx page throws when it tries to read the xml.
note, this test case is reading directly from disk for debug purposes:
ERROR consumeXML getXML: System.ArgumentException: The schema namespace is
invalid. Please use this one instead: http://www.w3.org/2001/XMLSchema. at
System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean
denyResolving) at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode
mode) at PrepareI.getXmlFromDisk() in
c:\Inetpub\wwwroot\STPWS\PrepareI.aspx.cs:line 106ERROR in ////using
CrystalDecisions.Shared; Page_Load: System.ArgumentException: The schema
namespace is invalid. Please use this one instead:
http://www.w3.org/2001/XMLSchema. at PrepareI.getXmlFromDisk()
Thanks
--
Jay