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

XML / XSL

 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 5:08
Support12320-Sep-06 5:08 
GeneralRe: Remove last blank page. Pin
led mike20-Sep-06 5:19
led mike20-Sep-06 5:19 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 5:26
Support12320-Sep-06 5:26 
GeneralRe: Remove last blank page. Pin
led mike20-Sep-06 6:00
led mike20-Sep-06 6:00 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 20:17
Support12320-Sep-06 20:17 
QuestionFooter Pin
Support12319-Sep-06 22:59
Support12319-Sep-06 22:59 
QuestionXmlDocument vs StringBuilder [modified] Pin
Jon Sagara19-Sep-06 19:09
Jon Sagara19-Sep-06 19:09 
AnswerRe: XmlDocument vs StringBuilder Pin
Support12319-Sep-06 23:11
Support12319-Sep-06 23:11 
string PI= "type='text/xsl' href='Whatever.xsl'";
XmlTextWriter myXmlTextWriter = new XmlTextWriter("PATH.xml", null);
myXmlTextWriter.Formatting = Formatting.Indented;
myXmlTextWriter.WriteStartDocument();
myXmlTextWriter.WriteProcessingInstruction("xml-stylesheet", PI);

//Open tag.
myXmlTextWriter.WriteStartElement("TagName");

//Open Tag with Attribute.
myXmlTextWriter.WriteStartElement("TagName2",null);
myXmlTextWriter.WriteAttributeString("key", Convert.ToString(counter));

//StartTagAndEndTagWithValue
myXmlTextWriter.WriteElementString("TagName3","What You Want Between Tags");
//Close Tag. This One Closes the "TagName2".
myXmlTextWriter.WriteEndElement();

//Close Tag. This One Closes the "TagName".
myXmlTextWriter.WriteEndElement();

//Write the XML to file(Look at "PATH.xml" part at the top)and close the myXmlTextWriter
myXmlTextWriter.Flush();
myXmlTextWriter.Close();

Hope that it is of some help...

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: XmlDocument vs StringBuilder Pin
Jon Sagara20-Sep-06 1:02
Jon Sagara20-Sep-06 1:02 
QuestionXML HTTP POST Pin
Steve-o H.18-Sep-06 5:58
Steve-o H.18-Sep-06 5:58 
AnswerRe: XML HTTP POST Pin
George L. Jackson20-Sep-06 14:59
George L. Jackson20-Sep-06 14:59 
QuestionLeak for not calling VariantClear on a Variant holding a IXMLDOMSchemaCollection2Ptr Pin
rajandpayal17-Sep-06 4:16
rajandpayal17-Sep-06 4:16 
Questionhow to pass xml nodes from a web service to a client? Pin
biaali15-Sep-06 4:20
biaali15-Sep-06 4:20 
QuestionQuery Pin
Shaurya_Rastogi15-Sep-06 0:35
Shaurya_Rastogi15-Sep-06 0:35 
QuestionDefine a development approach to Parse/Load/Search an XML document of size ~1GB Pin
Sandeep Akhare14-Sep-06 20:32
Sandeep Akhare14-Sep-06 20:32 
AnswerRe: Define a development approach to Parse/Load/Search an XML document of size ~1GB Pin
George L. Jackson15-Sep-06 4:12
George L. Jackson15-Sep-06 4:12 
GeneralRe: Define a development approach to Parse/Load/Search an XML document of size ~1GB Pin
Sandeep Akhare18-Sep-06 3:25
Sandeep Akhare18-Sep-06 3:25 
QuestionPulling values from XML nodes where xml is in string format Pin
Omkar Ghaisas14-Sep-06 9:05
Omkar Ghaisas14-Sep-06 9:05 
AnswerRe: Pulling values from XML nodes where xml is in string format Pin
SaurabhMaheshwari19-Sep-06 23:00
SaurabhMaheshwari19-Sep-06 23:00 
QuestionDataBinding to a directory of xml files. Pin
Colm_L14-Sep-06 2:37
Colm_L14-Sep-06 2:37 
QuestionHelp needed with xpath expression [modified] Pin
Shaurya_Rastogi13-Sep-06 23:22
Shaurya_Rastogi13-Sep-06 23:22 
AnswerRe: Help needed with xpath expression Pin
Christian Graus13-Sep-06 23:39
protectorChristian Graus13-Sep-06 23:39 
AnswerRe: Help needed with xpath expression Pin
led mike14-Sep-06 5:10
led mike14-Sep-06 5:10 
QuestionHow a string is treated like an element? Pin
oohungoo13-Sep-06 17:49
oohungoo13-Sep-06 17:49 
AnswerRe: How a string is treated like an element? Pin
Shaurya_Rastogi14-Sep-06 1:53
Shaurya_Rastogi14-Sep-06 1:53 

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.