Click here to Skip to main content
13,702,223 members

Error parsing XML: junk after document element

jamesmc1535 asked:

Open original thread
hi
i get this error

- Error parsing XML: junk after document element
-there are multple junk root elements , line 12
i changed the < - - to -- because it doesnt show in preview

(here is my line 12 )
--TextView
android:text="Create Account"
android:layout_width="match_parent"
android:layout_weight="20"
android:layout_height="0dp"
android:textColor="#368deb"
android:id="@+id/txtCreateAccount"
android:gravity="center"
android:textstyle="bold"
android:textSize="25sp" />

and heres my full code

--LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/background_light"
android:weightSum="100"
android:minWidth="25px"
android:minHeight="25px"/>


--TextView
android:text="Create Account"
android:layout_width="match_parent"
android:layout_weight="20"
android:layout_height="0dp"
android:textColor="#368deb"
android:id="@+id/txtCreateAccount"
android:gravity="center"
android:textstyle="bold"
android:textSize="25sp" />


--Button
android:text="Sign in"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="15"
android:id="@+id/btnsignin"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textsize="15sp" />


--TextView
android:text="Or"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="15"
android:id="@+id/txtOr"
android:textColor="#000"
android:gravity="center" />

--Button
android:text="Sign up with Email"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="15"
android:id="@+id/btnsignup"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textsize="15sp" />

--RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="35"
android:minWidth="25px"
android:minHeight="25px"/>

--ProgressBar
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar1"
android:indeterminate="true" />

--/RelativeLayout>

--/LinearLayout>

thanks in advance
Tags: Xamarin

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180906.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100