XmlXapResolver Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The XmlXapResolver type is used to resolve resources in the Windows Phone application’s XAP package.
Assembly: System.Xml (in System.Xml.dll)
The XmlXapResolver type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEntity | Maps a URI to an object that contains the actual resource. (Overrides XmlResolver::GetEntity(Uri, String, Type).) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResolveUri | When overridden in a derived class, resolves the absolute URI from the base and relative URIs. (Inherited from XmlResolver.) |
![]() | SupportsType | This method adds the ability for the resolver to return other types than just Stream. (Inherited from XmlResolver.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The XmlXapResolver is the default resolver for the XDocument , XmlReader and the XmlReaderSettings.
The following example loads an XML file from your application's XAP file.
The example uses bool.xml file as input.
<bookstore>
<book genre='novel' ISBN='10-861003-324'>
<title>The Handmaid's Tale</title>
<price>19.95</price>
</book>
<book genre='novel' ISBN='1-861001-57-5'>
<title>Pride And Prejudice</title>
<price>24.95</price>
</book>
</bookstore>

