Skip to Content
.NET & XML
book

.NET & XML

by Niel M. Bornstein
November 2003
Intermediate to advanced
476 pages
14h 38m
English
O'Reilly Media, Inc.
Content preview from .NET & XML

Name

XmlAttributes — System.Xml.Serialization (system.xml.dll)    class 

Synopsis

public class XmlAttributes {
// Public Constructors
   public XmlAttributes( );  
   public XmlAttributes( System.Reflection.ICustomAttributeProvider provider);  
// Public Instance Properties
   public XmlAnyAttributeAttribute XmlAnyAttribute{set; get; } 
   public XmlAnyElementAttributes XmlAnyElements{get; } 
   public XmlArrayAttribute XmlArray{set; get; } 
   public XmlArrayItemAttributes XmlArrayItems{get; } 
   public XmlAttributeAttribute XmlAttribute{set; get; } 
   public XmlChoiceIdentifierAttribute XmlChoiceIdentifier{get; } 
   public object XmlDefaultValue{set; get; } 
   public XmlElementAttributes XmlElements{get; } 
   public XmlEnumAttribute XmlEnum{set; get; } 
   public bool XmlIgnore{set; get; } 
   public bool Xmlns{set; get; } 
   public XmlRootAttribute XmlRoot{set; get; } 
   public XmlTextAttribute XmlText{set; get; } 
   public XmlTypeAttribute XmlType{set; get; } 
}

This type is used in conjunction with the XmlAttributeOverrides class to customize the serialization of an object at runtime. It has a property for each type of XML serialization attribute, which allows you to set the attributes at runtime.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied XML Programming for Microsoft® .NET

Applied XML Programming for Microsoft® .NET

Dino Esposito
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0596003978Supplemental ContentErrata