Ilya,
Thank you for your response. And thanks a million for your offer to help.
Are you a Microsoft employee? I will need to seek permission here to share
the complete xml file.
However, I took your advice.
I have been able to successfully run the following code on my desktop
(WindowsApplication) in the .NET 2003 environment.
Dim MyDataSet As New DataSet
Dim strISBN As String
strHTTPXML = "
http://xml.mydomain.com/onca/xml?" & _
"v=1.0&" & _
"t=webservices-20&" & _
"mode=stuff&" & _
"type=heavy&" & _
"page=1&" & _
"f=xml"
MyDataSet.ReadXml(strHTTPXML)
DataGrid1.DataSource = MyDataSet.Tables(0)
The above code loads the XML into my WinApp dataset and displays it
beautifully in my datagrid.
However, running the same code in my SmartDeviceApp for both the emulator
and the PPC 2003 iPAQ 4350 does not yield any errors, but it does not load
the grid.
Compact Framework versions:
I have the following loaded up on my PPC 2003: 1.03.3111.0
I have the following loaded up on my PPC 2003 Emulator: 1.0.2268.0
I will work on getting permission to share more information with you. In
the meantime, I can say that I have actually been able to load an XML file
into a dataset on the emulator & PDA. The XML file I used had no schema nor
a reference to a schema.
The XML File that I COULD get to load into my WindowsApp data grid, but NOT
my SmartDevicesApp datagrid looked just like the original non-schema XML
file with the following exception:
- <ProductInfo xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="
http://xml.MYDOMAIN.com/schemas3/dev.xsd">
- <Request>
- <Args>
<Arg value="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461;
.NET CLR 1.1.4322)" name="UserAgent" />
<Arg value="14KMT32BNEK680Q1MHMS" name="RequestID" />
<Arg value="0672325705" name="AsinSearch" />
<Arg value="us" name="locale" />
<Arg value="0" name="dev-t" />
<Arg value="(e-mail address removed)" name="t" />
<Arg value="xml" name="f" />
<Arg value="heavy" name="type" />
</Args>
</Request>
NOTE: the noNamespaceSchemaLocation that I have provided you does not point
to a valid location (I changed the domain name). However, when I use it in
my code, I provide a valid domain name.
The above code was listed just below the following first line of XML code:
<?xml version="1.0" encoding="UTF-8" ?>
I hope that this gives you more information, at least for now.
Thanks,
Gigi
You can feel free to e-mail me. I will post any resolutions to the
newsgroup.
(e-mail address removed)
"Ilya Tumanov [MS]" said:
This should work on CF with or without schema.
CF supports XSD schemas for DataSet, so you do not need to use inference.
Using inference is a bad idea.
Not only it's extremely slow (unless XML is really small), but all type
information will be lost if inference is used.
It's not clear to me why DataSet is empty. Are you getting an exception?
Which one?
Could you post sample schema and data files so I can try to reproduce this
problem? Thanks.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Me" <
[email protected]>
From: "Me" <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
References: <
[email protected]>
Subject: Re: How can I deal with an XML that has a reference to a schema?
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <
[email protected]>
NNTP-Posting-Host: 216.62.184.209
X-Complaints-To: (e-mail address removed)
X-Trace: newssvr32.news.prodigy.com 1072723293 ST000 216.62.184.209
(Mon,
29 Dec 2003 13:41:33 EST)
NNTP-Posting-Date: Mon, 29 Dec 2003 13:41:33 EST
Organization: SBC
http://yahoo.sbc.com
X-UserInfo1:
TSU[@I_AOXWASPLY\JON^T\CUSXB@DTMNHWB_EYLJZ]BGIELLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\
HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL
Date: Mon, 29 Dec 2003 18:41:33 GMT
Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!peer01.cox.net!peer02.cox.net!cox.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.co