MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Thank you for the little orientation you gave me of the XML DataSet path. Yes, if well-formatted, the code could run successfully that is the right answer.
Member
34 Points
167 Posts
DataSet statment
Mar 06, 2019 01:31 AM|slb2012|LINK
Which of the following statements is True
dataSet ds = new DataSet();
ds.ReadXML("..\..\states.xml", XmlReadMode Auto);
Responses:
I think the right answer will be number 2, correct?
Your help is appreciated. Thanks
Contributor
3500 Points
1300 Posts
Re: DataSet statment
Mar 06, 2019 06:48 AM|Ackerly Xu|LINK
Hi slb2012,
It depends , if the first parameter ..\..\states.xml truly refers to an xml file and it is well-formatted, the code could run successfully.
For example, if my code is
Then I should have dataset.xml in my folder xmlDemo at root path of my project.
And below is my xml. song will be the table name, artist,album,genre .. . will be the column name.
Best regards,
Ackerly Xu
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
34 Points
167 Posts
Re: DataSet statment
Mar 06, 2019 08:05 AM|slb2012|LINK
Thank you for the little orientation you gave me of the XML DataSet path. Yes, if well-formatted, the code could run successfully that is the right answer.