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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:33:28+00:00 2026-05-23T08:33:28+00:00

I have an xml feed from Google Contacts API, but I have trouble reading

  • 0

I have an xml feed from Google Contacts API, but I have trouble reading <gd: tags.

$xml = simplexml_load_string($google_contacts);

This reads every elements except the <gd: tags, which contains e-mail information.

What’s the best thing to do?

  • 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-23T08:33:28+00:00Added an answer on May 23, 2026 at 8:33 am

    Update: If you’re using name-spaces and xpath, you might need to register them first in SimpleXML.

    If you have problems to access an element, try to enclose it within {} angel brackets, this probably helps: $xml->{gd:...}.


    SimpleXML has no/limited support for XML-Namespaces if I remember correctly. DomDocument has, so take it instead.

    For a first start:

    $dom = new DomDocument;
    $dom->loadXML($google_contacts);
    ...
    

    Or use DomDocument for the part that is difficult to do in SimpleXML only:

    $domElement = dom_import_simplexml($simpleXmlNode);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a feed of XML from Google, about 300 entries in all. It
I've got XML feed from public google calendar. Looks like this: <?xml version='1.0' encoding='UTF-8'?>
I have an xml feed from the youtube API. So far I have successfully
Basically I have an xml feed from an offsite server. The xml feed has
I have a NSString which is passed from an xml feed........ NSString *strDate =@May
I have this script to generate an XML file for an RSS feed. Works
I have a NSString which is passed from an xml feed........ NSString *strDate =@Thu,
I have an xml feed for google products. It's accepted by google and there
I have inherited a piece of Javascript that uses the Google Feed API. It
Have a WCF service (hosted in IIS 6.0) that takes an XML feed from

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.