Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Looping through XML nodes with C# .Net for Windows Universal and Unity?

I'm working on porting a Unity3D project to the Hololens, but the project uses some XML related .Net classes that aren't included in the windows universal scripting backend. Unity provides System.Xml.XmlDocument, System.Xml.XmlTextReader, and System.Xml.XmlTextWriter, via the WinRTLegacy namespace, but I'm trying to loop through nodes of an xml document and extract specific content from elements in each node. All the results for that on the internet use the XmlElement class which is unavailable to me. Does anyone have advice on how to do this using only XmlDocument, or an alternative way to port this code to windows universal .net?

XmlDocument xmlDoc = xmlResponse;
foreach (XmlNode node in xmlDoc.SelectNodes("data/item")){
    foo x= new foo();
    x.id = int.Parse(node.GetAttribute("id"));
    x.name = node.SelectSingleNode("name").InnerText;
    x.date = node.SelectSingleNode("date").InnerText;
    xArray.Add(x);          
}
Sign In or Register to comment.