Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
Questionhow to create sequence no in richtextbox control in window application Pin
raj2313625-Nov-08 19:22
raj2313625-Nov-08 19:22 
Questiondotnet Pin
UjwalGwoda5-Nov-08 19:03
UjwalGwoda5-Nov-08 19:03 
AnswerRe: dotnet PinPopular
Ashfield5-Nov-08 21:19
Ashfield5-Nov-08 21:19 
QuestionCreating radiobutton dynamically Pin
B875-Nov-08 18:09
B875-Nov-08 18:09 
AnswerRe: Creating radiobutton dynamically Pin
Giorgi Dalakishvili5-Nov-08 19:30
mentorGiorgi Dalakishvili5-Nov-08 19:30 
GeneralRe: Creating radiobutton dynamically Pin
B875-Nov-08 21:34
B875-Nov-08 21:34 
GeneralRe: Creating radiobutton dynamically Pin
Giorgi Dalakishvili5-Nov-08 21:40
mentorGiorgi Dalakishvili5-Nov-08 21:40 
QuestionQuestion of Convert XML data to DataTable Pin
leejs4135-Nov-08 15:13
leejs4135-Nov-08 15:13 
I am programming a movie info collect tool. I think store all data with XML is OK.
Here is the MovieDataXML
<?xml version="1.0" encoding="utf-8" ?>
<Data>
  <Movie>
    <ChineseName>aa</ChineseName>
    <EnglishName>aa</EnglishName>
    <Year>aa</Year>
    <Area>aa</Area>
    <Type>aa</Type>
    <Language>aa</Language>
    <Subtitle>aa</Subtitle>
    <IMDB>aa</IMDB>
    <Resolution>aa</Resolution>
    <Director>aa</Director>
    <Actors>aa</Actors>
    <Introduction>aa</Introduction>
    <BelongTo>aa</BelongTo>
    <DiscNumber>aa</DiscNumber>
  </Movie>
</Data>

And when I try to read the data.
//clsXmlHandler is a class to read the xml data
ClassXMLHandler clsXmlHandler = new ClassXMLHandler();
string strMovieData = "Data";
XmlNode xNodeMovieData = clsXmlHandler.MovieDataDocument.SelectSingleNode(strMovieData);
XmlNodeReader xReader = new XmlNodeReader(xNodeMovieData);


Here is the problem
If I read XML data by DataTable
There will be a Exception "DataTable does not support schema inference from Xml",
If I create this DataTable schema manually,there is no data in that DataTable.
DataTable dtMovieData = new DataTable();
dtMovieData.ReadXml(xReader);


But I found it is OK if I use DataSet instead of DataTable
DataSet ds = new DataSet();
ds.ReadXml(xReader);


I don't know why.
Questionstring? Pin
dec825-Nov-08 14:27
dec825-Nov-08 14:27 
AnswerRe: string? Pin
PIEBALDconsult5-Nov-08 14:42
mvePIEBALDconsult5-Nov-08 14:42 
GeneralRe: string? Pin
dec825-Nov-08 14:51
dec825-Nov-08 14:51 
GeneralRe: string? Pin
User 66585-Nov-08 19:12
User 66585-Nov-08 19:12 
AnswerRe: string? Pin
V.5-Nov-08 21:20
professionalV.5-Nov-08 21:20 
AnswerRe: string? Pin
Programm3r6-Nov-08 1:17
Programm3r6-Nov-08 1:17 
GeneralRe: string? Pin
PIEBALDconsult6-Nov-08 3:37
mvePIEBALDconsult6-Nov-08 3:37 
QuestionImage in XML file Pin
nelsonpaixao5-Nov-08 13:59
nelsonpaixao5-Nov-08 13:59 
AnswerRe: Image in XML file Pin
Dave Kreskowiak5-Nov-08 15:13
mveDave Kreskowiak5-Nov-08 15:13 
AnswerRe: Image in XML file Pin
Mirko19805-Nov-08 22:07
Mirko19805-Nov-08 22:07 
QuestionSQL Server Express - How many querys per a second can it handle? Pin
Brad Wick5-Nov-08 12:52
Brad Wick5-Nov-08 12:52 
AnswerRe: SQL Server Express - How many querys per a second can it handle? Pin
Ashfield5-Nov-08 21:16
Ashfield5-Nov-08 21:16 
QuestionNot Getting Data Back From Stored Proc Call Pin
Kevin Marois5-Nov-08 10:28
professionalKevin Marois5-Nov-08 10:28 
AnswerRe: Not Getting Data Back From Stored Proc Call Pin
KaptinKrunch5-Nov-08 10:42
KaptinKrunch5-Nov-08 10:42 
AnswerRe: Not Getting Data Back From Stored Proc Call Pin
Ashfield5-Nov-08 21:26
Ashfield5-Nov-08 21:26 
Questionwaiting for multiple threads Pin
invictus35-Nov-08 10:24
invictus35-Nov-08 10:24 
AnswerRe: waiting for multiple threads Pin
Nicholas Butler5-Nov-08 11:35
sitebuilderNicholas Butler5-Nov-08 11:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.