Z
Zodiac
Hi all,
I have exported a XML from Access an it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns
d="urn:schemas-microsoft-com
fficedata"
generated="2005-05-10T05:25:59">
<qryExportXML>
<Name>Janssens NV</Name>
<LoginWeb>Jans</LoginWeb>
<PWDWeb>Jans</PWDWeb>
<Descrtiption>Klant</Descrtiption>
<Description>Groep A</Description>
<DiscountPercentage>1</DiscountPercentage>
</qryExportXML>
.......
I' trying to read it from an ASP.net page with the following code:
dstPasswords.ReadXml(MapPath("\data\contacts2.xml"))
dtblPasswords = dstPasswords.Tables(0)
arrUsers = dtblPasswords.Select("Name=' " & sUserName & "'")
However I always bump on this error message
System.Data.EvaluateException: Cannot find column [Name].
After some searching I foud that if I delete xmlns
d="urn:schemas-
microsoft-com
fficedata" from the file the column gets found without a
problem!!!
Can someone explain to me wat the problem is?
thks..
rgds
Z.
I have exported a XML from Access an it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns
generated="2005-05-10T05:25:59">
<qryExportXML>
<Name>Janssens NV</Name>
<LoginWeb>Jans</LoginWeb>
<PWDWeb>Jans</PWDWeb>
<Descrtiption>Klant</Descrtiption>
<Description>Groep A</Description>
<DiscountPercentage>1</DiscountPercentage>
</qryExportXML>
.......
I' trying to read it from an ASP.net page with the following code:
dstPasswords.ReadXml(MapPath("\data\contacts2.xml"))
dtblPasswords = dstPasswords.Tables(0)
arrUsers = dtblPasswords.Select("Name=' " & sUserName & "'")
However I always bump on this error message
System.Data.EvaluateException: Cannot find column [Name].
After some searching I foud that if I delete xmlns
microsoft-com
problem!!!
Can someone explain to me wat the problem is?
thks..
rgds
Z.