User avatar
gemelo
Topic Author
Posts: 8
Joined: 12 Feb 2018, 09:43
Contact:

"document contains no elements" XAML error (and more)

16 Feb 2018, 17:12

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
 
User avatar
jsantos
Site Admin
Posts: 4264
Joined: 20 Jan 2012, 17:18
Contact:

Re: "document contains no elements" XAML error (and more)

21 Feb 2018, 12:26

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.
 
User avatar
jsantos
Site Admin
Posts: 4264
Joined: 20 Jan 2012, 17:18
Contact:

Re: "document contains no elements" XAML error (and more)

05 Mar 2018, 19:07

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?
 
User avatar
jsantos
Site Admin
Posts: 4264
Joined: 20 Jan 2012, 17:18
Contact:

Re: "document contains no elements" XAML error (and more)

08 Mar 2018, 21:32

Fixed this in 2.1.0rc4!

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests