Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:40:59+00:00 2026-06-09T11:40:59+00:00

I am getting a long string as attribute and I want to unmarshal a

  • 0

I am getting a long string as attribute and I want to unmarshal a part of it.
Here is what element look like:

<Party id="PARTYID_1341592540748_ed044bd3-b8b2-40f9-a679-4daa411ecc45">

But I want just 1341592540748 to be set as id.
Is it possible to edit @XmlAttribute string on the fly ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:41:00+00:00Added an answer on June 9, 2026 at 11:41 am

    I would recommend implementing an instance of XmlAdapter to contain this logic. The advantage of this approach is that the XML conversion logic is kept separate from your domain model. An XmlAdapter is set on a field/property using the @XmlJavaTypeAdapter annotation.

    For More Information

    • http://blog.bdoughan.com/search/label/XmlAdapter
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting a string hash like this: string content = a very long
So, my list of models in app/models is getting kinda long, and I'd like
I'm building a survey w/ Codeigniter, and it's getting cumbersomely long...so I want to
I want to classify really long lines of texts. Strings. Here is the error
I have a long base64 type string I get and I'd like to set
I'd like to know how to shorten lines containing long string literals in my
Here my problem is: I have this code: static long CountLinesInFile(string f) { long
I've been getting frustrated with some subversion conflicts i've been getting for a long
I'm doing an IRC message parser with Boost.Spirit but I'm getting a (very long)
While getting into a nice long argument over memory locations vs pointers vs associated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.