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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:14:52+00:00 2026-05-30T15:14:52+00:00

I have an XML snippet, say: <root> <node>This &amp; that</node> </root> This needs to

  • 0

I have an XML snippet, say:

<root>
  <node>This &amp; that</node>
</root>

This needs to be sent over SOAP as a string, our framework escapes it as:

&lt;root>&lt;node>This &amp;amp; that&lt;/node>&lt;/root>

An end-user tells us this doesn’t parse, and our unit test (correctly) unescapes it. The resultant XML snippet should be conformant – &lt;node>This &amp;amp; that&lt;/node> from transmission should result in <node>This &amp; that</node> to send to a rendering layer when unescaped, right?

  • 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-30T15:14:53+00:00Added an answer on May 30, 2026 at 3:14 pm

    Your analysis appears correct. From the available evidence, I would conclude that your end-user’s software is not correctly handling the data, such as by extracting XML text (un-unescaped, if you see what I mean) from the SOAP message (rather than the text content of the document) and attempting to parse that, or using something other than an XML parser at some stage.

    Perhaps you could make sure your and their systems correctly process e.g. plain text such as In order to write a literal "&" in XML, HTML, or SGML text one writes "&amp;" instead.

    (I am mildly concerned by your description of a unit test as “doubly-unescaping” the text, as this suggests dangerous ways of thinking about the problem. If you “unescape” the string &lt;root>&lt;node>This &amp;amp; that&lt;/node>&lt;/root> twice, the result is either an error or the string <root><node>This & that</node></root> which is neither well-formed XML nor anything else you should likely want.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have XML that looks something like this: <Root xmlns=http://widgetspecA.com/ns> ...any... <WidgetBox> <A/> <B/>
I have this xml snippet as part of a xml file that will be
I have an XML document snippet that matches this XSD: <xs:complexType name=QuestionType> <xs:sequence> <xs:element
Let's say I have an XML file such as this: <root> <level1 name=level1A> <level2
I have a simple xml document that looks like the following snippet. I need
I have XML files in a directory that I wish to get over to
I have XML that looks like this: <Parameter Name=parameter name Value=parameter value /> which
Can someone please help me, I have this xml snippet <?xml version=1.0 encoding=utf-8 ?>
I have a snippet of XML that looks like <body> Some text.... <nodeA>....</nodeA> more
I have an xml snippet that contains an object hierarchy: doc = \ <RootObj

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.