如何在C#中将xmlstring更改为Datatable

如何在C#中将xmlstring更改为Datatable

问题描述:

我有一个使用大型xml的字符串编织器
但是当我将其转换为数据集时,我找不到所有参数,它可以让我做一些paramere wat
我的代码是这个


System.IO.StringReader sr =新的System.IO.StringReader(resummatter);
DataSet ds2 =新的DataSet();
ds2.ReadXml(sr);
xmlData.DataSource = ds2;
xmlData.DataBind();

有人帮我,我的字符串xml是


< root><名称><名称< middelname><姓氏>< emailid>< candidateid>< phone_mobile>< phone_basic>< dob><父>> prefferedlocation>< age>< relevent_exp>< expectedsalary>


////以下在数据集中找不到



< lcandidate_id>< ldesigantion>< lcompanyname>< lreferences>< employeement_recommendation_or_verification< lmobile_no>< basic_phoneno><<>< lenddate>< liscurrenemployer>< lcesidant_id>“ igesigantion>"公司名称>< lreferences>" employment_recommendation_or_verification"" l">>" < lstartdate>< lenddate>< lcandidate_id< ldesigantion>< lcompanyname lstate>< lcountry>< lstartdate>< lenddate>< liscurrenemployer>< lcandidate_id>< ldesigantion>< lcompanyname>< lreferences> ation>< lmobile_no>< lbasic_phoneno>"电子邮件地址>< lcity>" state" lcountry< lstartdate>< lenddate>< liscurrenemployer><" < lreferences>< employment_recommendation_or_verification>< lmobile_no>< basic_phoneno>< lemailaddress>< lcity>< state< lcountry><<><> /> < ldesigantion><公司名称>< lreferences>< employment_recommendation_or_verification>< lmobile_no>< lbasic_phoneno>"电子邮件地址><<<<> liscurrenemployer>//对此


//之后,这一切都可以在数据集中找到

< linsitution_type> l< lmarks>< pass_passing><许可证和证书>< lcollege_name>< lpin< lcity>"" jobobjective><行政摘要>< skillset>< skillssection>< resumetext>

I have a stringbulider taking large xml
but when i convert this in dataset then i was not find all parameter it leve some paramere wat can i do
my code is this


System.IO.StringReader sr = new System.IO.StringReader(resummatter);
DataSet ds2 = new DataSet();
ds2.ReadXml(sr);
xmlData.DataSource = ds2;
xmlData.DataBind();

any one help me my string xml is


<root><name><name><middelname><lastname><emailid><candidateid><phone_mobile><phone_basic><dob><fathername><permanent_address><prefferedlocation><age><relevent_exp><expectedsalary>


////below this is not find in dataset



<lcandidate_id><ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer><lcandidate_id><ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer><lcandidate_id><ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer><lcandidate_id><ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer><lcandidate_id><ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer><lcandidate_id>
<ldesigantion><lcompanyname><lreferences><lemployment_recommendation_or_verification><lmobile_no><lbasic_phoneno><lemailaddress><lcity><lstate><lcountry><lstartdate><lenddate><liscurrenemployer>//to this


//after this below all is find in dataset

<linsitution_type><ldegree><lmarks><lyear_of_passing><llicensesandcertifications><lcollege_name><lpin><lcity><lstate><lcountry><ldescription><ishighestdegree><jobobjective><executivesummary><skillset><skillssection><resumetext>

如果您缩短细节,那将是一件好事,否则大多数人现在会忽略!

顺便说一句...看起来像是简历在浮动! :)
It would be good if you shorten the details, otherwise most of the poeple would ignore for now!

Btw... looks like a resume being floated! :)