How to render a complex XML document in Android activity?

I want to make an app that fetches XML documents from the web and contain data like:\[code\]<doc> You can also look at <ref to="A">A</ref> or <ref to="B">B</ref>.<doc>\[/code\]With a pretty complex DTD and a structure that is not static and likely contains thousands of tags. Let's say I want the \[code\]ref\[/code\] elements to be rendered as clickable elements. Should I scan the file with an \[code\]XmlPullParser\[/code\], create an internal data structure out of the document and create \[code\]TextViews\[/code\] for all text sequences and make \[code\]ref\[/code\] tags clickable \[code\]TextViews\[/code\], or is it better, performance and UX wise, to convert the document to HTML and use a \[code\]WebView\[/code\]. Or do something else altogether?
 
Back
Top