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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:37:36+00:00 2026-06-14T03:37:36+00:00

Hey all i am trying to parse the following CDATA description: <description> <![CDATA[ <p><b>Submission

  • 0

Hey all i am trying to parse the following CDATA description:

 <description>
   <![CDATA[
     <p><b>Submission Date :</b> 2012-11-07 16:53:27<br/> <b>IP Address :</b> xx.xxx.xxx.xx<br/> <b>First Name :</b> dev<br/> <b>Email :</b> test3@here.com<br/> <b>18 yrs./Older :</b> YES<br/> <b>xxxxOffers :</b> <br/> </p>
   ]]>
</description>

Which looks like this when read in:

Submission Date : 2012-11-07 16:53:27
IP Address : xx.xx.xx.xx
First Name : dev
Email : test3@here.com
18 yrs./Older : YES
xxxxOffers : [space here]

Currently i do the following:

description = description.Replace("<p>", "").Replace("</p>", "").Replace("<b>", "").Replace("</b>", "").Replace("<br/>", "")
Dim descriptionArray() As String = Split(description, " : ")

Which yields the following:

enter image description here

which should be broken down as such:

(0)Submission Date
(1)2012-11-07 16:53:27
(2)IP Address
(3)xx.xxx.xxx.xx
(4)First Name
(5)dev
(6)Email
(7)test3@here.com
(8)18 yrs./Older
(9)YES
(10)xxxxOffers
(11)[space here]

I can not seem to find a way to split the CDATA into each value without using a SPLIT with the denominator of “:” which makes it all go off of whack since the time (16:53:27) has the “:” in it already.

So i tried to side-step that by checking for ” : “ but still does not give me the needed results I am looking for.

  • 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-14T03:37:37+00:00Added an answer on June 14, 2026 at 3:37 am

    I suggest you to get info in a dictionary oriented object. So you will have description and value in a single call. by example you can do something like :

    Dim ht as new HashTable   
    ' by <br>, you will have  : <p><b>Submission Date :</b> 2012-11-07 16:53:27 as first line
    For each inLine as string in split(description,"<br/>")
        '<p><b>Submission Date : and 2012-11-07 16:53:27
        dim keyValue as string = split(inLine,"</b>")
        'then clean up <p>,<b>,.... remaining either by "<" and ">" or full tag
        'add(key,value)
        ht.add(keyValue(0), keyValue(1))
    Next
    

    If for any reason you do not want to use an Enumerable Object, you can use this as base line.

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

Sidebar

Related Questions

Hey all, i am trying to split a users name but i am having
Hey all i am trying to search through a CSV file using the following
Hey all I'm trying to do the following insert query SqlDataSource userQuizDataSource = new
Hey all I'm trying to make a 3d game in with 2d sprite characters.
Hey all i am trying to figiure out why my code is not triggering
Hey all i am trying to understand how to keep my console app open
Hey all i am in need of some help trying to figure out how
Hey all, i have been trying for a few minutes on this problem and
Hey all, I am trying to accomplish something very simple yet getting an error
Hey all, i have a problem with trying to get 2 forms to close

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.