I am trying to display xml contents in a DOm element. Below code does not works. Could someome tell what I am doing wrong. The code never goes inside first callback.
Js file is in JS folder which is at same hierarchy as Content folder.
Windows.Storage.StorageFile.getFileFromPathAsync(".\..\Content\sample.xml").then(
function (f) {
file = f;
var promise = Windows.Data.Xml.Dom.XmlDocument.loadFromFileAsync(file, new Windows.Data.Xml.Dom.XmlLoadSettings()).then(function (xml) {
document.getElementById("textarea").innerText = xml.getXml();
});
});