Each sample I saw uses static XML in the xmldataprovider source, which is then used to manage UI data using XPath binding. The idea is to edit dynamic XML (a structure known to the developer at the time of coding) using the WPF interface.
Has anyone found a way to load a dynamic xml string (e.g. load it from a file at runtime) and then use that xml string as the source of the XmlDataprovider?
Code snippets will be great.
Update. To make it more understandable, let's say I want to load the xml string that I received from the web service call. I know the xml structure. Therefore, I bind it to the WPF controls in the WPF window. How to do it? All samples over the Internet define all XML inside the XAML code in the XmlDataProvider node. This is not what I am looking for. I want to use the xml string in the code to bind to user interface controls.
source
share