![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XML Namespace Prefix [Thread Next] Re: XML Namespace PrefixTo: NULL Date: 11/1/2006 7:41:00 PM Techno_Dex wrote: > Can anyone tell me how to add an XMLNamespace prefix to a C# class > declaration? I have a couple of different namespaces that must be declared > in my XML file but I can't figure out what class/property attributes I need > to add to have a namespace prefix generated in front of the element when the > class is serialized. This overload of the Serialize method <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlSerializationXmlSerializerClassSerializeTopic5.asp> takes a third argument where you can pass in an object mapping prefixes to namespace URLs so that the serializer uses the prefixes. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
