Are duplicates not allowed on XAttribute?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Folks,
I am using System.Xml.Linq.
For the application I am working on, I need to create XML attributes with the same name but different values. However, I get a "duplicate attribute" error at the time of adding the duplicate attribute.
Are duplicate XML attributes on allowed? Or, is there some setting on XDocument to allow duplicate attributes?
Thank you in advance for your help.
Regards,
Peter

View the full article
 
Back
Top