I am experimenting. My eventual goal is bind from a web service that
will return an xml dataset. The webmethod must return xml as I"m not
sure if the clients will always be .net or sql server or ado.net. Im
still stuck. Please see my prior post, seems my issue is not formating
of the xml. Thanks!
Martin Honnen wrote:
> webmaster@1stmiami.com wrote:
> > Getting error: Illegal characters in path
> > what's wrong with this?
> >
> > string xmlSR =
> > "<XmlDS><table1><phone>Value1</phone><name>jake</name></table1></XmlDS>";
> > myDataSet.ReadXml(xmlSR, XmlReadMode.IgnoreSchema);
> > DataList5.DataSource = myDataSet;
> > DataList5.DataBind();
>
> You should pass in a string with a URL as the first argument to ReadXml.
> At least that is one option. You can also pass in an XmlReader and based
> on what you have shown that is what you want to do, simply let your
> method return that reader that ExecuteXmlReader gives you, then pass
> that reader to ReadXml
> <
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataDataSetClassReadXmlTopic4.asp>
> <
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataDataSetClassReadXmlTopic8.asp>
>
>
> On the other hand you seem to have relational data, then you let the
> data base convert and return that as XML, then you load the XML into a
> DataSet (which is again a relational view of the data). Maybe you are
> just experiementing and playing with the different APIs, but if not I am
> not sure why you let the data base return XML at all, you can simply
> make a normal SQL query and load that result in a DataSet.
>
>
> --
>
> Martin Honnen --- MVP XML
>
http://JavaScript.FAQTs.com/