Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String XML to Dataset
Message
 
À
14/09/2002 08:41:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00700485
Message ID:
00700510
Vues:
9
>I have a component COM in VFP 7 that return one string XML. How I make to present this in a DataGrid?
>
>I try:
>
>lcXmlRet = (string) oVFP.SearchEmpresa("tes");
>DataSet loDS = new DataSet();
>
>loDS.ReadXml(lcXmlRet); ==> Error: Invalid URI: The URI scheme is not valid.
>
>this.DataGrid1.DataSource = loDS.Tables[0];
>this.DataGrid1.DataBind();

You will need to do the following...
StringReader loStream = new StringReader(lcXmlRet);
loDS.ReadXml(loXmlTextReader,XmlReadMode.ReadSchema);
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform