When an XMLDataProvider can be used ? What are it’s specific uses ?

Platform: WPF|Category: DataBinding

An XMLDataProvider can be used when your datasource is an XML file.

The following are some of the uses of XMLDataProvider.

  • XML can be pre-filtered using the XPath query of the XMLDataProvider.

  • It automatically reads the XML using a background thread without blocking the UI.

  • Data can be shared among the several controls.

  • If your XML uses Namespaces, then it is the convenient place to assign the XMLNamespaceManager.