Simple xhtml/entity resolver?
Oliver Ruebenacker <[email protected]> Thu, 29 Mar 2012 09:23:36 -0400
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <CAA=X4OCTDJ4b5iSZH3dLMYSE9=vekC8+ETBhKSKQ9gXVa0=nuw@mail.gmail.com> |
Hello,
I need a simple way to convert some XHTML fragments, provided as a
JDOM Element, into plain text. I am willing to ignore most HTML tags
and consider only the most commonly used predefined entities.
In JDOM, an entity reference has a name, a public id and a system
id. I think I know what the named means, for named entities. But what
about numeric entities, how do I get the code point? And what are
public id and system id?
Thanks!
Take care
Oliver
--
Oliver Ruebenacker, Computational Cell Biologist
Virtual Cell (http://vcell.org)
SBPAX: Turning Bio Knowledge into Math Models (http://www.sbpax.org)
http://www.oliver.curiousworld.org
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]