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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:04:20+00:00 2026-05-24T20:04:20+00:00

i have the following XML that i need to parse in C#: <data> <customer_id><![CDATA[1414301]]></customer_id>

  • 0

i have the following XML that i need to parse in C#:

<data>
  <customer_id><![CDATA[1414301]]></customer_id>
  <last_modified_date><![CDATA[2011-08-14 11:58:58]]></last_modified_date>
  <customer_first_name><![CDATA[joe]]></customer_first_name>
  <customer_last_name><![CDATA[blow]]></customer_last_name>
</data>

into an object called Result

public class Result
{
  public int customer_id;
  public string customer_first_name;
  public string customer_last_name;
}

the one thing that i am trying to determine is how to get rid of the

 <![CDATA[]]

and just parse out the regular values.

What is the best way of converting this XML to the object above that will support the CDATA syntax above

  • 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-24T20:04:21+00:00Added an answer on May 24, 2026 at 8:04 pm

    Not sure what you mean by ‘parse’. If you use an XML DOM parser (or any other type), then you have transparent access to the CDATA values.

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

Sidebar

Related Questions

I have a simple xml document that looks like the following snippet. I need
I have the following XML I need to parse. Much of my issue seems
I have the following xml that's sent to me from a web service. I'm
I have the following XML Document (that can be redesigned if necessary) that stores
I have the following XML and I want to process it so that I
Say I have the following XML <?xml version=1.0 encoding=utf-8?> <Person> <FirstName>Bjorn</FirstName> <LastName>Ellis-Gowland</LastName> </Person> That
I am parsing some XML that will have a link such as the following
My question is the following. I have xml that is versioned by a namespace.
I have the following code that serializes a DataTable to XML. StringWriter sw =
I have a line of PHP code that does the following: $xml = <xml><request>...[snipped

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.