"document contains no elements" XAML error (and more)
Hi,
we are making our first steps with the Noesis engine and for us - coming from WPF - is seems to be great opportunity to combine Unity and XAML. Our first tests gave us quickly successful results. It seems to be a great product
BUT: With the current version (latest version for Unity 2.1.0rc3) the workflow to use Noesis is quite annoying:
- We are getting repeatedly a "document contains no elements" exeption for our XAML files. Reimport sometimes helps sometimes not. If not we have to make little changes to the orignal XAML code (adding a space or something like that).
- If we "Reimport All" all the Noesis settings are gone - especially the global application resources and the preloaded XAMLs. Without the latter one our XAMLs wont work since we are using sub user controls inside our main control.
- If we reopen the Unity project on another PC all these problems occur again including resetted Noesis settings.
- We were trying to build one of our test projects for IOS but ran in two problems: XAMLs won't show up in the Play mode inside Unity - without any exception. The previews (after fixing the "document contains no elements" exception) are always gray. On the IOS device we're getting a "XAML is empty" (or something simular). The same project works on Windows and on Android.
Do you have any suggestions how to improve our workflow and how to avoid those problems?
Thank you
Peer
we are making our first steps with the Noesis engine and for us - coming from WPF - is seems to be great opportunity to combine Unity and XAML. Our first tests gave us quickly successful results. It seems to be a great product

BUT: With the current version (latest version for Unity 2.1.0rc3) the workflow to use Noesis is quite annoying:
- We are getting repeatedly a "document contains no elements" exeption for our XAML files. Reimport sometimes helps sometimes not. If not we have to make little changes to the orignal XAML code (adding a space or something like that).
- If we "Reimport All" all the Noesis settings are gone - especially the global application resources and the preloaded XAMLs. Without the latter one our XAMLs wont work since we are using sub user controls inside our main control.
- If we reopen the Unity project on another PC all these problems occur again including resetted Noesis settings.
- We were trying to build one of our test projects for IOS but ran in two problems: XAMLs won't show up in the Play mode inside Unity - without any exception. The previews (after fixing the "document contains no elements" exception) are always gray. On the IOS device we're getting a "XAML is empty" (or something simular). The same project works on Windows and on Android.
Do you have any suggestions how to improve our workflow and how to avoid those problems?
Thank you
Peer
Re: "document contains no elements" XAML error (and more)
I want to find time to analyze this carefully before releasing the final 2.1. Could you please create a ticket in the tracker and attach a link to a project reproducing the problems? That's going to be the fastest way to solve it.
A question, is this also happening in our samples? Do they work for example in iOS?
Thanks and sorry for the inconvenience.
A question, is this also happening in our samples? Do they work for example in iOS?
Thanks and sorry for the inconvenience.
Re: "document contains no elements" XAML error (and more)
I am working on this right now, I already commented about it in the tracker but as this is critical I also mentioning it here. Could you please put a link to the project in the ticket?
Re: "document contains no elements" XAML error (and more)
Fixed this in 2.1.0rc4!
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests