XmlXapResolver Class

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.

System::Object
  System.Xml::XmlResolver
    System.Xml::XmlXapResolver

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

No code example is currently available or this language may not be supported.

The XmlXapResolver type exposes the following members.

  NameDescription
Public methodXmlXapResolverInitializes a new instance of the XmlXapResolver class.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEntityMaps a URI to an object that contains the actual resource. (Overrides XmlResolver::GetEntity(Uri, String, Type).)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveUriWhen overridden in a derived class, resolves the absolute URI from the base and relative URIs. (Inherited from XmlResolver.)
Public methodSupportsTypeThis method adds the ability for the resolver to return other types than just Stream. (Inherited from XmlResolver.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

No code example is currently available or this language may not be supported.

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>

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

This type is thread safe.

Show:
© 2017 Microsoft