Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This class provides an object-oriented representation of a DIDL-Lite XML fragment. Given DIDL-Lite XML data, this class returns a succession of object instances. The DIDL-Lite schema is defined in the ContentDirectory documentation in UPnP AV DCP Documentation.
class parser
Methods
The following table shows the methods for this class.
Method | Description |
---|---|
parser::GetFirstObject | Accepts DIDL-Lite XML data and returns a pointer to the first object. |
parser::GetNextObject | Returns the next object represented by the DIDL-Lite XML data passed to GetFirstObject. |
parser::AddNamespaceMapping | Makes the specified XML namespace and corresponding prefix available to use with object properties and methods. |
Remarks
To use this class:
- Retrieve DIDL-Lite XML from a method such as IContentDirectory::Search, IContentDirectory::BrowseChildren, or IContentDirectory::BrowseMetadata.
- To retrieve an object instance that contains properties for the first object in the DIDL-Lite XML, call parser::GetFirstObject. The object class is defined in the av_upnp::DIDL_Lite C++ namespace; therefore, it is usually referred to by using the code av_upnp::DIDL_Lite::object or by using the av alias, as av::DIDL_Lite::object.
- To retrieve the remainder of the objects contained in the XML data, call parser::GetNextObject multiple times.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Av_upnp.h.
Link Library: Av_upnp.lib.
C++ Namespace: av_upnp::DIDL_Lite.
See Also
UPnP AV Control Point Utility Classes | IContentDirectory::BrowseChildren | IContentDirectory::BrowseMetadata | IContentDirectory::Search | object
Send Feedback on this topic to the authors