Click here to Skip to main content
15,799,185 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 4:53
professionalDaveyM6919-Jul-13 4:53 
GeneralRe: Empty node when data specified in xsd Pin
Richard MacCutchan19-Jul-13 3:21
mveRichard MacCutchan19-Jul-13 3:21 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 4:51
professionalDaveyM6919-Jul-13 4:51 
AnswerRe: Empty node when data specified in xsd Pin
jinzai17-Jul-14 14:01
jinzai17-Jul-14 14:01 
QuestionMerging 2 consecutive List items in XSLT Pin
David Kroj14-Jul-13 22:17
David Kroj14-Jul-13 22:17 
QuestionHow to do curd operations on XML Which Shown Below Pin
Rambabu Sapa10-Jul-13 2:40
Rambabu Sapa10-Jul-13 2:40 
QuestionRe: How to do curd operations on XML Which Shown Below Pin
Richard MacCutchan10-Jul-13 5:25
mveRichard MacCutchan10-Jul-13 5:25 
AnswerRe: How to do curd operations on XML Which Shown Below Pin
Rambabu Sapa11-Jul-13 4:18
Rambabu Sapa11-Jul-13 4:18 
C#
public static string filePath = HttpContext.Current.Server.MapPath("~/App_Data/Messages.xml");
       public static XmlDocument xmlDoc = new XmlDocument();


XmlNode _xmlNode = xmlDoc.CreateElement("category");
XmlAttribute _xmlCategoryName = xmlDoc.CreateAttribute("Name");
_xmlCategoryName.Value = categoryName;
_xmlNode.Attributes.Append(_xmlCategoryName);
// Add Message Node
XmlElement _xmlElement = xmlDoc.CreateElement("message");
XmlAttribute _xmlId = xmlDoc.CreateAttribute("id");
_xmlId.Value = Convert.ToString(ID);
_xmlElement.Attributes.Append(_xmlId);

XmlAttribute _xmltitle = xmlDoc.CreateAttribute("title");
_xmltitle.Value = Convert.ToString(title);
_xmlElement.Attributes.Append(_xmltitle);

XmlAttribute _xmlname = xmlDoc.CreateAttribute("name");
_xmlname.Value = Convert.ToString(name);
_xmlElement.Attributes.Append(_xmlname);

XmlAttribute _xmlDescription = xmlDoc.CreateAttribute("Description");
_xmlDescription.Value = Convert.ToString(description);
_xmlElement.Attributes.Append(_xmlDescription);
_xmlNode.AppendChild(_xmlElement);
xmlDoc.DocumentElement.AppendChild(_xmlNode);
AnswerRe: How to do curd operations on XML Which Shown Below Pin
jinzai17-Jul-14 14:07
jinzai17-Jul-14 14:07 
Questiondisplaying xml file on wpf Pin
adinarayana095808-Jul-13 19:37
adinarayana095808-Jul-13 19:37 
AnswerRe: displaying xml file on wpf Pin
Richard MacCutchan8-Jul-13 22:28
mveRichard MacCutchan8-Jul-13 22:28 
QuestionChecking for valid xml file. Pin
Mark F.18-Jun-13 8:53
Mark F.18-Jun-13 8:53 
AnswerRe: Checking for valid xml file. Pin
Bernhard Hiller19-Jun-13 21:52
Bernhard Hiller19-Jun-13 21:52 
GeneralRe: Checking for valid xml file. Pin
Mark F.20-Jun-13 14:52
Mark F.20-Jun-13 14:52 
QuestionParsing HTML Pin
PIEBALDconsult18-Apr-13 6:15
professionalPIEBALDconsult18-Apr-13 6:15 
AnswerRe: Parsing HTML Pin
Richard Deeming18-Apr-13 6:56
mveRichard Deeming18-Apr-13 6:56 
GeneralRe: Parsing HTML Pin
PIEBALDconsult18-Apr-13 17:18
professionalPIEBALDconsult18-Apr-13 17:18 
GeneralRe: Parsing HTML Pin
Richard Deeming19-Apr-13 2:46
mveRichard Deeming19-Apr-13 2:46 
QuestionXML data representation Pin
Neo101015-Apr-13 1:39
Neo101015-Apr-13 1:39 
AnswerRe: XML data representation Pin
Kenneth Haugland5-Apr-13 3:13
professionalKenneth Haugland5-Apr-13 3:13 
QuestionHow to retrieve data from XLS/TXT file and DB? Pin
David venewald27-Feb-13 17:09
David venewald27-Feb-13 17:09 
AnswerRe: How to retrieve data from XLS/TXT file and DB? Pin
jinzai17-Jul-14 14:14
jinzai17-Jul-14 14:14 
Questionrunning xml Pin
Member 963455215-Jan-13 4:02
Member 963455215-Jan-13 4:02 
AnswerRe: running xml Pin
Abhishek Pant15-Jan-13 4:45
professionalAbhishek Pant15-Jan-13 4:45 
QuestionExecute a task scheduler stop command (to kill one task)before starting the upgrade. Pin
Prasanth Vijayan9-Dec-12 21:07
Prasanth Vijayan9-Dec-12 21:07 

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.