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 4601992
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:54:46+00:00 2026-05-21T23:54:46+00:00

I got an & # 39; in my XML file. (it is the char

  • 0

I got an ” & # 39; ” in my XML file. (it is the char code for the quot in HTML)

EX :

< desc > blabla bla & # 39; bla bla la. < / desc>

When i parse it with String tmp = itemOfEvent.getFirstChild().getNodeValue() it cut my text juste before the quot.

I got a crash with URL.encode(tmp, "UTF-8")

Better idea ?

  • 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-05-21T23:54:47+00:00Added an answer on May 21, 2026 at 11:54 pm

    The best solution i’ve found was to replace bad char

    xmlString = xmlString.replaceAll(" & #39;", " \ ' ");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote the following in the strings.xml file: <string name=game_settings_dragNDropMove_checkBox>Move by Drag&Drop</string> I got
So I've got this UTF-8 string in an XML file: Horrible place. ☠☠☠ And
Crux of my problem: I've got an XML file that returns 20 results. Within
I got an Xml file fileOri.xml and there are some lines like <SubItem name='somename'
I got my test XML file to print using the following source file, but
I am new to XML & XSLT but have got this problem. I have
I got an XML file from 3rd party that I must import in my
I've got some trouble with displaying pdfs in IE7 (which were generated by R&OS'
So I've got a Ruby method like this: def something(variable, &block) .... end And
I've got a bunch of strings like: Hello, here's a test colon&#58;. Here's a

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.