Click here to Skip to main content
15,925,499 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: what it is? Pin
George L. Jackson31-Jul-07 6:43
George L. Jackson31-Jul-07 6:43 
QuestionValidating XML against XSD in MSXML6.0 Pin
Kavita seth31-Jul-07 0:22
Kavita seth31-Jul-07 0:22 
AnswerRe: Validating XML against XSD in MSXML6.0 Pin
Stefan Troschuetz31-Jul-07 23:13
Stefan Troschuetz31-Jul-07 23:13 
GeneralRe: Validating XML against XSD in MSXML6.0 Pin
Kavita seth4-Aug-07 4:28
Kavita seth4-Aug-07 4:28 
GeneralRe: Validating XML against XSD in MSXML6.0 Pin
Stefan Troschuetz6-Aug-07 21:53
Stefan Troschuetz6-Aug-07 21:53 
Questionhow to write xml in C#.net Pin
anumadhu29-Jul-07 21:47
anumadhu29-Jul-07 21:47 
AnswerRe: how to write xml in C#.net Pin
Stefan Troschuetz30-Jul-07 1:53
Stefan Troschuetz30-Jul-07 1:53 
QuestionRe: how to write xml in C#.net Pin
anumadhu30-Jul-07 2:04
anumadhu30-Jul-07 2:04 
Hello,

I did, like this.. and got the root element, in the way.. which my sample xml document contains.

But i am not much sure, that whether the method that i followed is correct or not. please help me out in fixing whether this is right or not.

This the piece of code, which i wrote to write the root node .. according to my requirement..




//writer.WriteStartElement("tns", "schedule", "http://www.MyCopmpany.com/Schedule");
writer.WriteStartElement("tns:schedule");
writer.WriteAttributeString("xmlns:tns", "", "http://www.MyCompany.com/Schedule");
writer.WriteAttributeString("xmlns:dt", "","http://www.MyCompany.com/DataTypes");
writer.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
writer.WriteAttributeString("xsi:schemaLocation", "http://www.MyCompany.com/Schedule Schedule.xsd");
writer.WriteAttributeString("scheduleType", "Playback");
writer.WriteAttributeString("version", "1.0");
writer.WriteAttributeString("creationTime", "2006-01-29T00:00:00");
writer.WriteAttributeString("originator", "MyCompany");

writer.WriteStartElement("scope");
writer.WriteAttributeString("startTime", "2006-01-29T04:00:00".ToString());
writer.WriteAttributeString("stopTime", "2006-01-29T06:00:00".ToString());

writer.WriteEndElement();

//use the record structure
int i = 0, count;
count = xmlSlotNodes.Count;
// sort the slots according to there callSign
xmlSlotNodes.Sort(0,count,new Sorting ());
string[] prgmTime = new string[2];
----
----

Thank you

Anee
AnswerRe: how to write xml in C#.net Pin
Stefan Troschuetz30-Jul-07 3:43
Stefan Troschuetz30-Jul-07 3:43 
GeneralRe: how to write xml in C#.net Pin
anumadhu30-Jul-07 21:03
anumadhu30-Jul-07 21:03 
Questionhow to connect xml file to tally Pin
v.surendrakumar29-Jul-07 21:19
v.surendrakumar29-Jul-07 21:19 
QuestionXml WellFormedness error Pin
Abhi Manav29-Jul-07 14:39
Abhi Manav29-Jul-07 14:39 
AnswerRe: Xml WellFormedness error Pin
DavidNohejl29-Jul-07 21:31
DavidNohejl29-Jul-07 21:31 
GeneralRe: Xml WellFormedness error Pin
Abhi Manav30-Jul-07 7:38
Abhi Manav30-Jul-07 7:38 
GeneralRe: Xml WellFormedness error Pin
Stefan Troschuetz30-Jul-07 21:59
Stefan Troschuetz30-Jul-07 21:59 
GeneralRe: Xml WellFormedness error Pin
Abhi Manav31-Jul-07 11:41
Abhi Manav31-Jul-07 11:41 
QuestionIs this possible to create a new XML file based on another XML file using XSL/XSLT? Pin
Rocky#28-Jul-07 1:30
Rocky#28-Jul-07 1:30 
AnswerRe: Is this possible to create a new XML file based on another XML file using XSL/XSLT? Pin
George L. Jackson30-Jul-07 12:27
George L. Jackson30-Jul-07 12:27 
QuestionSharePoint Services 3 Web Parts Pin
MetalSmith27-Jul-07 9:29
MetalSmith27-Jul-07 9:29 
QuestionXML datatype in sql server 2005 Pin
Revathij27-Jul-07 0:27
Revathij27-Jul-07 0:27 
AnswerRe: XML datatype in sql server 2005 Pin
Naji El Kotob28-Jul-07 11:06
Naji El Kotob28-Jul-07 11:06 
GeneralRe: XML datatype in sql server 2005 Pin
Revathij7-Aug-07 0:20
Revathij7-Aug-07 0:20 
Questionwriting XML in C#.net Pin
anumadhu26-Jul-07 21:16
anumadhu26-Jul-07 21:16 
QuestionCreate XML File Pin
Maynka26-Jul-07 18:56
Maynka26-Jul-07 18:56 
QuestionXmlElement Question Pin
rbreault26-Jul-07 12:15
rbreault26-Jul-07 12:15 

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.