Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Is it easier to update XML or a recordset?

$
0
0

I have an XML document that I'm loading into a recordset to do a mailmerge with a Word document.

I have additional data that needs to be added before it can be loaded into Word.

Here's the portion of the XML document i need updated. Each one of these skills is loaded into a table in Word. What I need added are the applicant's responses to each of these skills.

<mandatoryskills><mandatory>•Share Point Site Development </mandatory></mandatoryskills><mandatoryskills><mandatory>•Photoshop</mandatory></mandatoryskills><optionalskills><optional>•HTML </optional></optionalskills><optionalskills><optional>•CSS</optional></optionalskills>

I would need the final XML document to look like this. The answers are all coming from gridview textboxes, so I'd have to loop through them and add them to the appropriate XML rows.

<mandatoryskills><mandatory>•Share Point Site Development </mandatory><mananswer>I have 5+ years experience with SharePoint (MOSS 2007 & 2010)</mananswer></mandatoryskills><mandatoryskills><mandatory>•Photoshop</mandatory><mananswer>I have 2+ years experience with Photoshop</mananswer>	</mandatoryskills><optionalskills><optional>•HTML </optional><optanswer>I have 5+ years experience with HTML</optanswer></optionalskills><optionalskills><optional>•CSS</optional><optanswer>I have 2+ years experience with CSS</optanswer></optionalskills>

Otherwise, I could load the existing XML into a recordset and try to add the answers to it instead before doing the mailmerge.

// Create Resume Matrix with XML
                            DataSet ResumeDS = new DataSet();
                            ResumeDS.ReadXml(XmlPath);

Here is where I'm loading the mentioned XML file (top example without answers) into a recordset and doing my mailmerge.

I just need to figure out the best way to add the applicants answers to the jobs mandatory and optional skills.

Any ideas?



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>