here is an implemetation using Linq to XML
private void InsertIntoDatabase(string xml)
{
XDocument doc = XDocument.Parse(xml);
var query = from records in doc.Elements("PWMDocuments
select records;
if (null != query)
{
foreach (XElement record in query)
{
//Do database insert here }
}
}
Main Topics
Browse All Topics





by: AlexCodePosted on 2009-07-17 at 05:59:18ID: 24878158
Try using this code
Select allOpen in new window