TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
jeya pandi
NA
62
19.1k
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