Will Web 3.0 Replace Web 2.0?
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
jeya pandi
2.1k
62
15.7k
How to create XML attribute name with special character:
Mar 27 2018 12:46 PM
Hi,
i am using a XMLDocument to generate a XML file and some elements have an attribute name containing the caracter ":".
The code is:
elem = xmldoc.CreateElement("Livraria");
elem.SetAttribute("Nome:XPTO", "TESTESARA");
elem.SetAttribute("Local", "Braga");
xmldoc.DocumentElement.AppendChild(elem);
In the XML file generated the attribute name is only XPTO and i wanted it to be Nome:XPTO.
Is this possible or is it a limitation of the framework?
Thanks in advance.
Reply
Answers (
1
)
outlook add in and read outlook mail attachments using c#
Create Zip Using ionic