<dfn> is not a custom tag. Been around a while. http://www.w3schools.com/tags/tag_phrase_elements.asp
As that page suggests, CSS might be the neatest way to achieve the behaviour the OP is after. On Sep 14, 2:23 am, Kostya Vasilyev <kmans...@gmail.com> wrote: > Looks like your data is a mix of HTML tags and custom tags that have > meaning only for your application. > > On the other end, WebView works with HTML, and doesn't understand those > special tags. > > I think one way to make it work is to transform those custom tags into > HTML ones with proper Javascript "crutches" to implement the > functionality you seek. > > This can be done with XSLT, supposedly Xalan supports SAX and possibly > can be built on Android (you could try it and write up your experiences). > > http://xml.apache.org/xalan-j/ > > You could also probably do the transformation "by hand", using Java > String and friends. > > -- Kostya > > 13.09.2010 20:10, Neilz пишет: > > > > > > > Hi all. > > > I'm receiving XML which contains elements of HTML and I want to > > display these to the users. Therefore, I have to set the content > > programmatically, rather than extract the strings from an android xml > > resource. > > > I'm using a WebView to display the content, rather than TextView, as > > it handles some of the HTML markup - bold text for example, and links. > > However WebView does appear to be rather limited. > > > For example, the content I want to display contains definition links: > > > <p>This is a<dfn title='some definition'>definition</dfn></p> > > > I've been looking at this for a while now, and can't really think of a > > way to capture this in android. The idea would be that when the > > relevant word is clicked, the definition pops up. > > > Any ideas appreciated! > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en