How to convert XmlNodeList to Xmlstring to bind xml data with dataset

qieuvxx

New Member
\[code\]XmlDocument objXmldoc = new XmlDocument();objXmldoc.Load(txtBrowseFilePath.Text); XmlNodeList objxmlNodeList=null; objxmlNodeList = objXmldoc.SelectNodes(@"/AppXmlLogWritter/LogData[LogDateTime/text()[starts-with(. , '" + dateTimePickerFromDate.Value.ToString("yyyyMMdd") + "')]]");DataSet ds = new DataSet(); ds.ReadXml(objxmlNodeList);\[/code\]How to convert XmlNodeList to Xmlstring to bind xml data with datasetxml file\[code\]<?xml version="1.0" encoding="utf-8" standalone="yes"?><AppXmlLogWritter><LogData> <LogID>5678201301161640382918</LogID> <LogDateTime>20130116164037</LogDateTime> <LogType>Message</LogType> <LogFlag>RISLogFlag</LogFlag> <LogApplication>BaburaoLogApplication</LogApplication> <LogModule>RISLogModule</LogModule> <LogLocation>RISLogLocation</LogLocation> <LogText>BaburaoLogText</LogText> </LogData><LogData> <LogID>5678201301161640382919</LogID> <LogDateTime>20130116164038</LogDateTime> <LogType>Warning</LogType> <LogFlag>MACLogFlag</LogFlag> <LogApplication>MACLogApplication</LogApplication> <LogModule>MACLogModule</LogModule> <LogLocation>MACLogLocation</LogLocation> <LogText>MACLogText</LogText> </LogData></AppXmlLogWritter>\[/code\]
 
Back
Top