我想解析一個xhtml文件並在UITableView中顯示。解析xhtml文件的最佳方法是什麼,以便我能夠在瀏覽器中顯示它。這裏是一個示例xhtml源代碼在iPhone SDK解析xhtml?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Wheel</title>
<link rel="stylesheet" type="text/css" href="../styles/stylesheet.css"/>
<link rel="stylesheet" type="application/vnd.adobe-page-template+xml" href="../page-template.xpgt"/>
</head>
<body>
<h2 class="h2"><a id="page_x"></a><a id="page_xi"></a><a id="page_xii"></a><a id="table"></a>TABLE OF CONTENTS</h2>
<p class="content2"><strong><a href="Big Idea.html">WHAT’S THE BIG IDEA?</a></strong></p>
<p class="content2"><strong><a href="Choosing.html">CHOOSING</a></strong></p>
<p class="content2"><strong><a href="author note.html">AUTHOR’S NOTE</a></strong></p>
<p class="content2"><strong><a href="part1.html">THE STORY OF OG</a></strong></p>
<p class="content"><a href="chapter01.html">Chapter #  1:  Og Gets an Idea</a></p>
<p class="content"><a href="chapter02.html">Chapter #  2:  Dazed By the Possibilities</a></p>
<p class="content"><a href="chapter03.html">Chapter #  3:  Aargh!</a></p>
<p class="content"><a href="chapter04.html">Chapter #  4:  The Grunt of the Town</a></p>
<p class="content"><a href="chapter05.html">Chapter #  5:  Getting Around To It</a></p>
<p class="content"><a href="chapter05.html">Chapter #  6:  Og’s Head Is Full, But the Cupboard Is Empty</a></p>
<p class="content"><a href="chapter07.html">Chapter #  7:  The Big Meating</a></p>
<p class="content"><a href="chapter08.html">Chapter #  8:  The Path Is Made By Walking On It</a></p>
<p class="content"><a href="chapter09.html">Chapter #  9:  Crouch</a></p>
<p class="content"><a href="chapter10.html">Chapter #10:  An Arrow to the Heart of the Matter</a></p>
<p class="content"><a href="chapter11.html">Chapter #11:  Nothing to Get</a></p>
<p class="content"><a href="chapter12.html">Chapter #12:  Smoke From a Fire, Flakes From a Stone</a></p>
<p class="content"><a href="chapter13.html">Chapter #13:  The Happy Accident</a></p>
<p class="content"><a href="chapter14.html">Chapter #14:  The Center Is Everything</a></p>
<p class="content"><a href="chapter15.html">Chapter #15:  Sleeping Like a Rock</a></p>
<p class="content"><a href="chapter16.html">Chapter #16:  Follow Your Feet</a></p>
<p class="content"><a href="chapter17.html">Chapter #17:  Everyone’s Turn</a></p>
<p class="content2"><a href="Best Practices.html"><strong>WHAT OG LEARNED:</strong> 12 Wheely Good Best Practices</a></p>
<p class="content2"><a href="Tooling.html"><strong>TOOLING UP:</strong> 35 Ways to Get the Wheels Turning</a></p>
<p class="content2"><a href="stone.html"><strong> IN STONE:</strong> The Tools and Techniques Contest</a></p>
<p class="content2"><a href="Nexting.html"><strong>NEXTING:</strong> the Future</a></p>
<p class="content2"><a href="Staying.html"><strong> ROLL:</strong> Resources for Thinking Outside the Cave</a></p>
<p class="content2"><a href="ogcasting.html"><strong>O<span class="smallcaps2">G</span>CASTING:</strong> Your Free Audio Bonus</a></p>
<p class="content2"><a href="about_author.html"><strong>ABOUT THE AUTHOR</strong></a></p>
</body>
</html>