Programming Enhanced Presence Schemas
The following tasks are discussed in this three-part article about publishing and subscribing to enhanced presence.
Publishing and subscribing to enhanced presence involves creating, parsing, and manipulating enhanced presence category instances as XML elements. Part 1 discusses how to transform the enhanced presence XML schema types into their corresponding Microsoft .NET Framework classes.
After publishing an enhanced presence category, you must create the XML string of a given category instance. Part 2 discusses how to programmatically generate this string by instantiating a common language runtime (CLR) class of the XSD type as defined in a unified communications enhanced presence schema.
In part 3, you learn how to parse a schematized enhanced presence category instance with the Microsoft.NET Framework System.Xml.Serialization and System.Reflection namespaces. This kind of parsing makes your parsing code reusable and subject to fewer errors than direct manipulations of the raw XML strings that use either XPath with regular expression or XML Document Object Model (DOM).
Programming Enhanced Presence Schemas: Creating .NET Framework Assemblies from Schemas (Part 1 of 3)
Programming Enhanced Presence Schemas: Creating Category Instances (Part 2 of 3)
Programming Enhanced Presence Schemas: Parsing Category Instances (Part 3 of 3)