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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:04:10+00:00 2026-05-29T08:04:10+00:00

i have a customised wordpress post that looks like this when view source. How

  • 0

i have a customised wordpress post that looks like this when view source.

How can i read parse it as XML ?

<title>A sample quiz</title>    
    <content>Hello.</content>
        <updatedDate>18/01/12</updatedDate>
    <updatedTime>16:11</updatedTime>
  <question>How many days are there in a week?</question>
  <hint>No hint</hint>

  <direction>Left</direction>
  <answer1>4</answer1>
  <answer2>5</answer2>
  <answer3>6</answer3>
  <answer4>7</answer4>
  <correctAnswer>4</correctAnswer>
  <score>20</score>
  • 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-29T08:04:11+00:00Added an answer on May 29, 2026 at 8:04 am

    remember to set in your h file.
    NSXMLParserDelegate
    and set

    - (void)didload
    {
    
        NSString *site = [NSString   stringWithFormat:@"http://www.mysite.it/mydirectory/myxml"];
        NSURL *xmlURL = [NSURL URLWithString:site];
    
        myParser =  [[NSXMLParser alloc] initWithContentsOfURL:xmlURL];
        [myParser setDelegate:self];  
        [myParser parse];
    }
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 
      namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName 
        attributes:(NSDictionary *)attributeDict {
    
        if ([elementName isEqualToString:@"title"]) {
            NSLog(@"element %@",attributeDict);
            //do something
        }
        else if ([elementName isEqualToString:@"content"]){
            NSLog(@"element %@",attributeDict);
            //do something
        }
        //ecc
    }
    

    this is very simplified method. for more detail
    http://www.xcode-tutorials.com/parsing-xml-files/

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

Sidebar

Related Questions

Can the calendar control be customsised so that, say you have a system of
I am using wordpress twentyten theme. and in this i have set search widget.
Im after a plugin to do autocomplete like facebook does in that you can
I have a PHP script that publishes customised JavaScript based on the parameter, with
I have a Wordpress website that was customized by a php developer. He created
I am configuring Jira for bug reporting, I have customised the create/edit/view screens for
We have a website application that is deployed and customised for multiple customers, across
We have an application which we licence to separate companies. The app is customised
We have a lot of customized spreadsheet solutions that are being used and we
I have an application that has a list of buttons and has customized tooltips.

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.