Gettting access to body

8 views
Skip to first unread message

thom...@gmail.com

unread,
Nov 17, 2023, 2:53:53 PM11/17/23
to jackson-user
I am parsing the following line:

          <w lemma="2377" n="1.0" morph="HNcmsc" id="31xeN">חֲז֖וֹן</w>

I have created a class, OsisWord, for this line of text and have properties set up for lemma, morph, etc. How do I access the body text between the tags?

Tatu Saloranta

unread,
Nov 17, 2023, 3:11:17 PM11/17/23
to jackso...@googlegroups.com
Add one more property (with whatever name, does not matter), and add
`@JacksonXmlText` annotation to indicate that it should contain the
text from the element.

-+ Tatu +-
Reply all
Reply to author
Forward
0 new messages