Extract / Parse Tags from Mixed Content String

Posted by Andreas on Stack Overflow See other posts from Stack Overflow or by Andreas
Published on 2010-04-07T08:50:47Z Indexed on 2010/04/07 8:53 UTC
Read the original article Hit count: 478

Filed under:
|
|

Hello,

i want to parse Tags from a mixed Content String. The string goes like this:

"<PERSON>yasir arafat</PERSON> , the president of the <LOCATION>palestinian authority</LOCATION> , on the defensive , mr . sharon believes , a government official"

I only want to use jaxp. Got anybody an idea for this. May an easy way with Expressions. But i need the Element names as well though.

Best Regards

Andreas

© Stack Overflow or respective owner

Related posts about Xml

Related posts about parsing