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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:21:36+00:00 2026-05-29T19:21:36+00:00

i have a content called [note content]; it holds a xml element with a

  • 0

i have a content called [note content]; it holds a xml element with a string hello world
the xml element is like

<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">\n<en-note>hello world </en-note>" 

I tried NSXMLparser for parsing this,but no luck.how can i parse [note content]; and separate that string ? Is there any other way for separating this string ?

  • 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-29T19:21:38+00:00Added an answer on May 29, 2026 at 7:21 pm

    Hey you can use xml parsing or for the above specific string you can use below code (the other way as you have asked)

    NSString *str = @"<\?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">\n<en-note>hello world </en-note>";
    NSArray *arr    = [str componentsSeparatedByString:@"<en-note>"];
    if ([arr count] == 2) {
        str = [arr objectAtIndex:1];
        str = [str stringByReplacingOccurrencesOfString:@"</en-note>" withString:@""];
    }
    NSLog(@"%@",str);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Model called Version that looks like this: from google.appengine.ext import db
I have a content type called fund. The contents of this is in node-fund.tpl.php
I have a column called body , which contains body content for our CMS.
can we have content text directly in <div>text content</div> or it should be like
Currently I am trying to parse an xml string that I already have (no
I have a php variable called $VrHistorySlider , defined like this: $VrHistorySlider.='<table border=0><tr><td>(oldest)</td><td style=padding:0px
I have a template called client_details.html that displays user , note and datetime .
I have a model called Notes. The attributes are id, url, content. In my
I have a property on my BaseController called DataContext that holds my LINQ to
I have a paragraph of text in a javascript variable called 'input_content' and that

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.