Hi

Sorry previous mail accientally flew away...

Due to the fact that Layout files use dynamic tags (am I right) and thus
I was not able to find DTD or layout schemas, so could not check who is
right and who is wrong in:

DroidDraw generated xml code is not accepted by Visual Studio..

ref for TDT/XSD:
http://groups.google.com/group/android-developers/browse_thread/thread/36495a058a905e67

DroidDraw generated:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/widget31"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android";
 >
        <Button
        android:id="@+id/widget32"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button"
 >
        </Button>
        <CheckBox
        android:id="@+id/widget33"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="CheckBox"
 >
        </CheckBox>
        <ImageButton
        android:id="@+id/widget35"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
 >
        </ImageButton>
        <RadioButton
        android:id="@+id/widget34"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="RadioButton"
 >
        </RadioButton>
</LinearLayout>


Visual Studio schemas:
  C:\Program Files\MSBuild\Novell\android-layout-xml.xsd
  C:\Program Files\MSBuild\Novell\schemas.android.com.apk.res.android.xsd

Visual studio warnings:

Warning 1       The element cannot contain white space. Content model is 
empty.  \Resources\Layout\layout2.axml  14      2       Project1


Visual Studio corrections (closing tags):

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/widget31"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android";
 >
        <Button
        android:id="@+id/widget32"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button"
/>
        <CheckBox
        android:id="@+id/widget33"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="CheckBox"
/>
        <ImageButton
        android:id="@+id/widget35"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
/>
        <RadioButton
        android:id="@+id/widget34"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="RadioButton"
/>
</LinearLayout>

I this problem with Monodroid XSD schema or should I report this to 
DroidDraw stuff??

Thanks

Mel
-- 
Miljenko Cvjetko dipl.ing. ET
        Direktor/CEO
        Projektant rješenja/Solution Architect  
        Razvojni programer/Senior developer
        Voditelj projekta/Project Manager

IX južna obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvje...@holisticware.net
w: www.holisticware.net

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to