本文介绍了如何在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>

推荐答案


这篇关于如何在C#中将xmlstring更改为Datatable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 23:57