How can I remove unwanted texts in a textview in android.

Example:
The textview contains this:

<div id="userbar-container" align="center">

<div class="fixed-width">

    <div id="control-panel">

        <ul>
                                <li>Logged In As: <a href="/members/834075/pmark019">pmark019</a></li>

                <li><a href="/members/edit_profile">Edit Profile</a></li>

                <li class="highlight"><a href="/messages/received">Private Messages (2)</a></li>

                <li><a href="/members/articles/watching">Watched Articles</a></li>

                <li><a href="/community/rules">Member Rules</a></li>                

                <li><a href="/members/logout">Log Out</a></li>

                        </ul>

    </div>   

I want to remove the rest making the only content of the text view "pmark019". How can I do it?

Jsoup is good choice for parsing simple HTML in Android applications. Check this document for data extraction

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.