Click here to Skip to main content
15,914,943 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XML as data source Pin
Shog915-Feb-06 3:20
sitebuilderShog915-Feb-06 3:20 
Questionhow to update an XML file Pin
Abhishek Tiwari13-Feb-06 20:23
Abhishek Tiwari13-Feb-06 20:23 
AnswerRe: how to update an XML file Pin
Gokulan Venattil15-Feb-06 0:23
Gokulan Venattil15-Feb-06 0:23 
Questionadding xmlnode to xmldocument Pin
NewbieDude12-Feb-06 20:16
NewbieDude12-Feb-06 20:16 
AnswerRe: adding xmlnode to xmldocument Pin
George L. Jackson13-Feb-06 5:57
George L. Jackson13-Feb-06 5:57 
QuestionDate format problem with GetXml() Pin
Enigma344011-Feb-06 19:53
Enigma344011-Feb-06 19:53 
AnswerRe: Date format problem with GetXml() Pin
George L. Jackson13-Feb-06 7:24
George L. Jackson13-Feb-06 7:24 
GeneralRe: Date format problem with GetXml() Pin
Enigma34405-Mar-06 3:05
Enigma34405-Mar-06 3:05 
Hi,
Thanks for the reply, Iam getting a dataset from a SQL query and later Iam using the "GetXml()" to get the dataset in a string. in this string I dont know which node has the date, it depends upon the query.
My main issue is first I want to search which node in the string has the date value in this format ( sample date 2006-12-25T16:30:00.0000000+03:00) and then format it as dd/MM/yyyy or any other format.
and more over I am using C# to achive this functionality.

I have modified your code as follows
DataSet myDs = new DataSet();
myDs = myDataset();
string strxml = myDs.GetXml();
XmlDocument xdoc = new XmlDocument();
xdoc.LoadXml(strxml);
XmlNodeList nodelst = xdoc.SelectNodes("/NewDataSet/Table/StartDate");
foreach (XmlNode node in nodelst)
{
DateTime dt = XmlConvert.ToDateTime(node.InnerText);
Response.Write("Date :" + dt.ToString("dd/MM/yyyy") + "\n");
}

My main concern is in the "xdoc.SelectNodes("/NewDataSet/Table/StartDate");"
I dont want to give the path or the element itself.

I hope I've made my point clear, please feel free if u have any issues

Thanks in Advance
QuestionXSL Display Problem!!! Pin
Support12310-Feb-06 1:57
Support12310-Feb-06 1:57 
AnswerRe: XSL Display Problem!!! Pin
George L. Jackson10-Feb-06 3:53
George L. Jackson10-Feb-06 3:53 
GeneralRe: XSL Display Problem!!! Pin
Support12312-Feb-06 18:54
Support12312-Feb-06 18:54 
AnswerRe: XSL Display Problem!!! Pin
George L. Jackson13-Feb-06 8:18
George L. Jackson13-Feb-06 8:18 
GeneralRe: XSL Display Problem!!! Pin
Support12313-Feb-06 18:37
Support12313-Feb-06 18:37 
QuestionXML convert to HTML Pin
JacquesDP9-Feb-06 23:36
JacquesDP9-Feb-06 23:36 
AnswerRe: XML convert to HTML Pin
George L. Jackson10-Feb-06 4:40
George L. Jackson10-Feb-06 4:40 
GeneralRe: XML convert to HTML Pin
JacquesDP12-Feb-06 17:29
JacquesDP12-Feb-06 17:29 
QuestionConvert String Format Back To Xml File !!! Pin
HatakeKaKaShi9-Feb-06 17:57
HatakeKaKaShi9-Feb-06 17:57 
AnswerRe: Convert String Format Back To Xml File !!! Pin
imsathy9-Feb-06 19:49
imsathy9-Feb-06 19:49 
GeneralRe: Convert String Format Back To Xml File !!! Pin
George L. Jackson10-Feb-06 5:16
George L. Jackson10-Feb-06 5:16 
QuestionIs schema file or mapping file is compulsory for SQLXML? Pin
essamughal9-Feb-06 6:03
essamughal9-Feb-06 6:03 
AnswerRe: Is schema file or mapping file is compulsory for SQLXML? Pin
George L. Jackson10-Feb-06 5:41
George L. Jackson10-Feb-06 5:41 
GeneralRe: Is schema file or mapping file is compulsory for SQLXML? Pin
essamughal10-Feb-06 7:04
essamughal10-Feb-06 7:04 
GeneralRe: Is schema file or mapping file is compulsory for SQLXML? Pin
George L. Jackson10-Feb-06 9:35
George L. Jackson10-Feb-06 9:35 
QuestionGenerate Xml describing my textbox or any UI controls Pin
NewbieDude8-Feb-06 20:06
NewbieDude8-Feb-06 20:06 
Questionfirefox XML DOM compatibility Pin
kedar.dave7-Feb-06 10:18
kedar.dave7-Feb-06 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.