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

  • SEARCH
  • Home
  • 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 7696961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:54:06+00:00 2026-05-31T21:54:06+00:00

I am trying to parse a document that is formatted similar to Xml (but

  • 0

I am trying to parse a document that is formatted similar to Xml (but not XML format) it works for everything except when I reach an HTML code like &ldquo. Then I get an error and everything crashes. How can I work around this?

Edit Here’s the error and the line it happens on:

03-25 17:56:26.540: W/System.err(21265): org.apache.harmony.xml.ExpatParser$ParseException: At line 68, column 354: undefined entity

<F_S_INGREDIENTS>Pale ale malt (well-modified and suitable for single-temperature infusion mashing); American hops; American yeast that can give a clean or slightly fruity profile. Generally all-malt, but mashed at lower temperatures for high attenuation. Water character varies from soft to moderately sulfate. Versions with a noticeable Rye character (“RyePA”) should be entered in the Specialty category.</F_S_INGREDIENTS>

I’ve narrowed it down to “RyePA”

  • 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-31T21:54:08+00:00Added an answer on May 31, 2026 at 9:54 pm

    &ldquo is a valid HTML entity, but not a valid XML entity. You aren’t going to be able to parse it with a stock XML parser.

    The defineEntityReplacement() method looks promising. If you can’t get that to work for you, you can simply read the string into memory (if it’s not too bug) and before you hand it off to the parser, replace the text yourself,

    String s = xml.replaceAll("&ldpos;", "\"").replaceAll("&rdpos;", "\"");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to parse some XML that looks similar to this: <document> <headings>
I'm trying to parse an XML document on Android 2.3.3, but it seems that
I am trying to parse an XMl document that i received into a string
I am trying to parse an html page with BeautifulSoup, but it appears that
I'm trying to parse an XML document that has an attribute called link which
I am trying to manipulate xsd schema as an xml document that should not
Trying to parse an HTML document and extract some elements (any links to text
So I'm trying to parse the following XML document with C#, using System.XML: <root
I'm trying to parse and load an XML document, however I'm getting this exception
I'm trying to use XPath to parse an XML document. One of my NSXMLElement's

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.