Syntax error on token "}", but i really cannot find it
<p>I'm learning android now, and i write some simple codes according to the book. </p>

<p>i create an android project named Chapter03_ResourceActivity, then create <strong>test.xml</strong> in res/xml/ folder, contents are as follows:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;customer name = "first_name" age = "1" email = "first_name@xml.com" /&gt;
    &lt;customer name = "second_name" age = "2" email = "second_name@xml.com" /&gt;
&lt;/resources&gt;
</code></pre>

<p>and type codes in <strong>Chapter03_ResourceActivity.java</strong>(src/com.app.MainActivity/Chapter03_ResourceActivity.java) as follows:</p>

<pre><code>package com.app.MainActivity;

import org.xmlpull.v1.XmlPullParserException;

import android.app.Activity;
import android.content.res.XmlResourceParser;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Chapter03_ResourceActivity extends Activity {
    /** Called when the activity is first created. */

    private Button myButton;
    private TextView myTextView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button myButton = (Button)findViewById(R.id.btn_xml);
        final TextView myTextView = (TextView)findViewById(R.id.text_xml);

        myButton.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
            StringBuilder sb = new StringBuilder();
            XmlResourceParser xrp = getResources().getXml(R.xml.test);
            int counter = 0;
            try {
                while(xrp.getEventType() != XmlResourceParser.END_DOCUMENT) {
                    if(xrp.getEventType() == XmlResourceParser.START_TAG) {
                        String name = xrp.getName();
                        if(name.equals("customer")) {
                            counter ++;
                            sb.append(counter + " Customer" + "\n");
                            sb.append(xrp.getAttributeValue(0) + "\n");
                            sb.append(xrp.getAttributeValue(1) + "\n");
                            sb.append(xrp.getAttributeValue(2) + "\n\n");
                        } 
                        xrp.next();
                    }
                } 
            myTextView.setText(sb.toString());    &lt;&lt;--Here Eclipse mark an error. 
                catch(XmlPullParserException e) {
                    e.printStackTrace();
                }
            }   
            }
        });           &lt;&lt;--Here Eclipse mark another error.
    }
}
</code></pre>

<p>Two errors have been marked in the code. i tried to solve it by myself, but forgive my dull, i cannot find it. i counted the number of "{" and  "}" for many times, and just find they are right equal. Maybe i really miscounted? Or something i dont konw made this error? Any help appreciated.</p>
