Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello friends,

I am new to xml. I want to specify the time duration in .xml file for my c# application.
This is my code. I don't know. is it correct or not.

<?xml version="1.0" encoding="utf-8" ?>
<setting>
  <xs:element xmlns:xs="http://tempuri.org/XMLFile1.xsd">    
    <xs:element name="period" type="xs:duration">
      <period>PT10S</period>
    </xs:element>  
    </xs:element>
  
</setting>


Please correct me if i am wrong.
Posted
Comments
[no name] 12-Mar-15 2:31am    
ref this http://stackoverflow.com/questions/15970161/reading-multiple-child-nodes-of-xml-file

Hi,

Read This Tutorials..

1) XSD Overview
2) XSD Date and Time Data Types
 
Share this answer
 
If your question is to create a new xml file then have a look at this link

C Sharp Informations
or
Stack Overflow
or
Mind Fire Solutions

if you are looking for how to read xml file then have a look at the below links

C Sharp Informations To Read

A simple google search gives me these many below links

A simple google search

Have a look at that, and if you are looking for some other solution other than the above mentioned, links then better phrase your question or post comments.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900