Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin "Newsfeed"
#23
I have an XML file which, for testing purposes, I'm reading in, then echoing. It seems not all nodes/elements are read in/echoed back though, one is missing.

The code
Code:
<?php

# Load the file into an object
$sxml = simplexml_load_file('atom.xml');

# Echo the object to the screen
echo $sxml->asXML();

?>

The file

Code:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <entry>
    <title>Testeintrag 01</title>
    <link href="http://www.testing-simplexml.de">http://www.test.de</link>
    <id>000001</id>
    <updated>now</updated>
    <summary>...Lorem ipsum</summary>
  </entry>

</feed>

Any idea why <title> is missing from the output?

Code:
http://www.test.de 000001 now
...Lorem ipsum
Reply


Messages In This Thread
Plugin "Newsfeed" - by polyfragmented - 2011-03-29, 06:52:52
Plugin "Newsfeed" - by polyfragmented - 2011-03-29, 07:14:23
Plugin "Newsfeed" - by mvlcek - 2011-03-29, 16:05:36
Plugin "Newsfeed" - by polyfragmented - 2011-03-29, 17:37:44
Plugin "Newsfeed" - by polyfragmented - 2011-03-30, 06:22:33
Plugin "Newsfeed" - by mvlcek - 2011-03-30, 06:37:00
Plugin "Newsfeed" - by polyfragmented - 2011-03-30, 06:43:34
Plugin "Newsfeed" - by polyfragmented - 2011-04-05, 03:56:48
Plugin "Newsfeed" - by ccagle8 - 2011-04-05, 04:13:08
Plugin "Newsfeed" - by polyfragmented - 2011-04-05, 06:03:25
Plugin "Newsfeed" - by polyfragmented - 2011-04-06, 04:24:33
Plugin "Newsfeed" - by polyfragmented - 2011-04-06, 04:45:48
Plugin "Newsfeed" - by polyfragmented - 2011-04-06, 04:59:27
Plugin "Newsfeed" - by mvlcek - 2011-04-06, 05:53:24
Plugin "Newsfeed" - by polyfragmented - 2011-04-07, 21:15:06
Plugin "Newsfeed" - by RobA - 2011-04-08, 00:10:55
Plugin "Newsfeed" - by mvlcek - 2011-04-08, 00:23:20
Plugin "Newsfeed" - by polyfragmented - 2011-04-08, 04:54:46
Plugin "Newsfeed" - by polyfragmented - 2011-04-09, 08:31:23
Plugin "Newsfeed" - by polyfragmented - 2011-04-09, 21:54:55
Plugin "Newsfeed" - by RobA - 2011-04-10, 03:00:54
Plugin "Newsfeed" - by polyfragmented - 2011-04-10, 20:55:52
Plugin "Newsfeed" - by polyfragmented - 2011-04-21, 22:57:44



Users browsing this thread: 1 Guest(s)