Not what you're looking for? Visit our Previous Support Site

Guide Structure

A Guide Structure represents one section of a Guide.  Often this is linked to by the Destination Menu feed as it builds a menu for a given location.  Each Guide Structure has a type (eg “Introduction”).

For more information, browse the Guide Structure API

Introduction

Paris is unique in that it is a major global city -- home to more than 10 million people in the greater region -- yet it manages to synthesize the rhythms of village life with those of a cosmopolitan world capital. Although the city is a center of European commerce, many shops are closed on Sundays, leaving time for lazy brunches or shopping excursions at a local market. Paris is the capital of fashion, art, and people-watching; a city where Chanel-clad ladies walk poodles along grand boulevards; a place where the waiters might be rude but the food is délicieux. Paris is all of that and more. Your love affair begins once you look beyond the Eiffel Tower, explore the backstreets, and make Paris your own.

Things to Do

Comfy shoes are essential for this city of a thousand walks, landscaped gardens, and cavernous galleries. Reserve your ticket for speedy access to the Louvre, which sidles up to the sculpture-dotted Jardin des Tuileries. Across the Seine on the Left Bank, take your pick from Impressionist hangout Musée d'Orsay, Notre-Dame's Gothic grandeur and Musée Rodin's Kiss sculpture. Okay, you really can't leave without seeing Paris light up from the Eiffel Tower, open till midnight.

Restaurants and Dining

Good food is a birthright and its appreciation a rite of passage in Paris, where a meal -- sometimes even coffee -- can last hours. For a memorable splurge, book one of the city's opulent three-star palace restaurants, like Le Plaza Athenée or L'Astrance, or book ahead for a table at one of the trendy bistronomiques that combine gastronomy with bistro pricing -- Frenchie, Le Chateaubriand, Rino, and Spring are all hot right now.

Shopping

Parisians luxuriate in shopping -- bidding shopkeepers bonjour and pausing to lèche-vitrines ("lick the windows," or window shop). Saunter the boutiquey Marais for home-grown fashion, or voguish rue Saint-Honoré, home to concept store Colette, for more high-end labels. Where else can you find such palatial department stores as chic Bon Marché, Art Nouveau Printemps, or monumental Galeries Lafayette? Antiques, bric-a-brac, vintage Chanel -- it's all at the charming Porte de Vanves weekend flea market; arrive early for bargains and stay for brunch.

Nightlife and Entertainment

Ballet and opera at the glittering Opéra Garnier, Molière classics at the Comédie Française, and cancan at the (in)famous Moulin Rouge -- Paris nightlife reaches from sublime to borderline sleazy. A young, trendy crowd parties around the Bastille, gay Marais, and the effortlessly hip bars in Oberkampf, where DJs play at industrial-chic Nouveau Casino. Dress to the nines to slip past picky doormen in clubs around Champs-Élysées like celebrity-magnet Le Baron, and rock the Seine dancing to techno on moored party boat Batofar.

Request:

http://demosite.frommers.biz/frommers/guide_structure.feed?guideStructureTypeId=557449&locationId=151160

Response:

<guideStructure xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="feedschema/base.xsd" id="658407">
  <guide id="658406" name="Paris">
    <guideType id="1" name="Frommers Destination Guide" guideGroup="FROMMERS_DESTINATION_GUIDE"/>
    <location id="151160" name="Paris">
      <parent id="143101" name="France">
        <parent id="143019" name="Europe"/>
      </parent>
    </location>
    <book id="658370" name="Frommer&apos;s Paris 2012"/>
  </guide>
  <guideStructureType id="557449" name="Introduction"/>
  <content>&lt;p&gt;Paris is unique in that it is a major global city -- home to more than 10 million people in the greater region -- yet it manages to synthesize the rhythms of village life with those of a cosmopolitan world capital. Although the city is a center of European commerce, many shops are closed on Sundays, leaving time for lazy brunches or shopping excursions at a local market. Paris is the capital of fashion, art, and people-watching; a city where Chanel-clad ladies walk poodles along grand boulevards; a place where the waiters might be rude but the food is &lt;i&gt;d&amp;eacute;licieux&lt;/i&gt;. Paris is all of that and more. Your love affair begins once you look beyond the Eiffel Tower, explore the backstreets, and make Paris your own.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Things to Do&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Comfy shoes are essential for this city of a thousand walks, landscaped gardens, and cavernous galleries. Reserve your ticket for speedy access to the &lt;b&gt;Louvre,&lt;/b&gt; which sidles up to the sculpture-dotted &lt;b&gt;Jardin des Tuileries.&lt;/b&gt; Across the Seine on the &lt;b&gt;Left Bank,&lt;/b&gt; take your pick from Impressionist hangout &lt;b&gt;Mus&amp;eacute;e d&apos;Orsay, Notre-Dame&apos;s&lt;/b&gt; Gothic grandeur and &lt;b&gt;Mus&amp;eacute;e Rodin&lt;/b&gt;&apos;s &lt;i&gt;Kiss&lt;/i&gt; sculpture. Okay, you really &lt;i&gt;can&apos;t&lt;/i&gt; leave without seeing Paris light up from the &lt;b&gt;Eiffel Tower,&lt;/b&gt; open till midnight.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Restaurants and Dining&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Good food is a birthright and its appreciation a rite of passage in Paris, where a meal -- sometimes even coffee -- can last hours. For a memorable splurge, book one of the city&apos;s opulent three-star palace restaurants, like &lt;b&gt;Le Plaza Athen&amp;eacute;e&lt;/b&gt; or &lt;b&gt;L&apos;Astrance,&lt;/b&gt; or book ahead for a table at one of the trendy &lt;i&gt;bistronomiques&lt;/i&gt; that combine gastronomy with bistro pricing -- &lt;b&gt;Frenchie, Le Chateaubriand, Rino,&lt;/b&gt; and &lt;b&gt;Spring&lt;/b&gt; are all hot right now.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Shopping&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Parisians luxuriate in shopping -- bidding shopkeepers &lt;i&gt;bonjour&lt;/i&gt; and pausing to &lt;i&gt;l&amp;egrave;che-vitrines&lt;/i&gt; (&quot;lick the windows,&quot; or window shop). Saunter the boutiquey &lt;b&gt;Marais&lt;/b&gt; for home-grown fashion, or voguish &lt;b&gt;rue Saint-Honor&amp;eacute;,&lt;/b&gt; home to concept store &lt;b&gt;Colette,&lt;/b&gt; for more high-end labels. Where else can you find such palatial department stores as chic &lt;b&gt;Bon March&amp;eacute;,&lt;/b&gt; Art Nouveau &lt;b&gt;Printemps,&lt;/b&gt; or monumental &lt;b&gt;Galeries Lafayette&lt;/b&gt;? Antiques, bric-a-brac, vintage Chanel -- it&apos;s all at the charming &lt;b&gt;Porte de Vanves weekend flea market;&lt;/b&gt; arrive early for bargains and stay for brunch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nightlife and Entertainment&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Ballet and opera at the glittering &lt;b&gt;Op&amp;eacute;ra Garnier,&lt;/b&gt; Moli&amp;egrave;re classics at the &lt;b&gt;Com&amp;eacute;die Fran&amp;ccedil;aise,&lt;/b&gt; and cancan at the (in)famous &lt;b&gt;Moulin Rouge --&lt;/b&gt; Paris nightlife reaches from sublime to borderline sleazy. A young, trendy crowd parties around the &lt;b&gt;Bastille,&lt;/b&gt; gay &lt;b&gt;Marais,&lt;/b&gt; and the effortlessly hip bars in &lt;b&gt;Oberkampf,&lt;/b&gt; where DJs play at industrial-chic &lt;b&gt;Nouveau Casino.&lt;/b&gt; Dress to the nines to slip past picky doormen in clubs around &lt;b&gt;Champs-&amp;Eacute;lys&amp;eacute;es&lt;/b&gt; like celebrity-magnet &lt;b&gt;Le Baron,&lt;/b&gt; and rock the Seine dancing to techno on moored party boat &lt;b&gt;Batofar.&lt;/b&gt;&lt;/p&gt;</content>
</guideStructure>

Call the feed URL, using curl


$ch = curl_init(); // Set up curl
curl_setopt($ch, CURLOPT_URL, $url); // Add url
curl_setopt($ch, CURLOPT_HEADER, 0); // Remove header
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return data
curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Set timeout, 10s
$response = curl_exec($ch); // Call feed
curl_close($ch); // Close curl, free resources

Convert response to XML


$guideStructure = new SimpleXMLElement($response); // Create xml object

Build output dynamically, displaying decoded HTML content


<div class="guideStructure">
    <h2><span><?php echo $guideStructure->guideStructureType["name"]; ?></span></h2>
    <div class="rawHTMLOutput">
        <?php echo htmlspecialchars_decode($guideStructure->content);?>
    </div>
</div>

Loading...