Click here to Skip to main content
15,891,372 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
AnswerRe: how to write xml in C#.net Pin
Stefan Troschuetz30-Jul-07 3:43
Stefan Troschuetz30-Jul-07 3:43 
Looks quite ok, but
- For starting the root element you should use the following overload of the WriteStartElement method, cause the one that is currently used expects a local name and not a qualified name:
writer.WriteStartElement("tns", "schedule", "http://www.MyCopmpany.com/Schedule");

- For writing the namespace declarations you should use the following overload, cause the one that is currently used also expects a local name and not a qualified name:
writer.WriteAttributeString("xmlns", "tns", null, "http://www.MyCompany.com/Schedule");
writer.WriteAttributeString("xmlns", "dt", null,"http://www.MyCompany.com/DataTypes");
writer.WriteAttributeString("xmlns", "xsi", null, "http://www.w3.org/2001/XMLSchema-instance");
writer.WriteAttributeString("xsi", "schemaLocation", "http://www.w3.org/2001/XMLSchema-instance", "http://www.MyCompany.com/Schedule Schedule.xsd");



"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

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 
QuestionNeed help with an xPath question Pin
Grapes-R-Fun26-Jul-07 11:17
Grapes-R-Fun26-Jul-07 11:17 

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.