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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:08:47+00:00 2026-06-07T01:08:47+00:00

I am using fetch xml to retieve values from ms crm 2011 entities. it

  • 0

I am using fetch xml to retieve values from ms crm 2011 entities.
it throws INVALID XML error, the sample xml is given below:

<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
    <entity name='xyz_registrationanswer'>
         <attribute name='xyz_registrationid' />
         <attribute name='xyz_name' />
         <filter type='and'> 
            <condition attribute='xyz_name' operator='in' >  
                <value>Do you want to subscribe to 1 & 2?</value>         
            </condition> 
        </filter> <order attribute='xyz_name' descending='false' />
    </entity>
</fetch>

By invistigating the issue i found the cause which is the & sign between 1 and 2:

<value>Do you want to subscribe to 1 & 2?</value> 

1- Can someone help me how to fix this issue?

2- What are other illegal characters so i can handle them?

Regards.

  • 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-07T01:08:49+00:00Added an answer on June 7, 2026 at 1:08 am

    HttpUtility.HtmlEncode() worked for me, by handling the illegal characters(<>&'”).

    <value>HttpUtility.HtmlEncode("Do you want to subscribe to 1 & 2?")</value>  
    

    See below article for more detail.

    How to locate and replace special characters in an XML file with Visual C# .NET

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

Sidebar

Related Questions

Using Java,I have to fetch multiple sets of values from an XML file to
I need to put the values retrieved using a Fetch Request from my core
I am using NSURLConnection to fetch XML data from the server. I am parsing
I am using PHP cURL to fetch XML output from a URL. Here is
I'm using Python's suds library which tries to fetch xml.xsd over the network. Unfortunately,
here is my code i am using to fetch mysql result from 4 different
I'm using CURL to fetch some data from user accounts. First it logs in
In Python 2.6 using ElementTree, what's a good way to fetch the XML (as
I have code to fetch characters from a StAX parser using eventReader. The code
I'm using httpwebrequest to fetch some xml document, the code is as followed. When

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.