Flashblocks Flash CMS Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Loading xml data in html or php file
(1 viewing) 1 Guest
Go to bottom
TOPIC: Loading xml data in html or php file
#9370
Loading xml data in html or php file 6 Months ago  
Hi,

I try to load only some part of the xml file where flashblocks save the data. But I don't find a solution to do that properly.

Ok we can load all the data file in php and print it with:

$datafile = file_get_contents("link_to_data_file.xml");
print("$datafile");


Or in html with something like:

<xml id="datafile" src="link_to_data_file.xml"></xml>
<span datafld="nodename"></span>


But with the xml created by flashblocks I don't find a way to display only part of the xml and not the entire content, for exemple I try to display only some "div id"

Why doing that? To generate a mobile version of the flash site and having the possibility to edit the content only on the main site.

Somebody can help me to find the solution?

Thanks in advance.

David
 
Logged Logged
 
Last Edit: 2011/11/19 08:10 By david.
  The administrator has disabled public write access.
#9373
Re:Loading xml data in html or php file 5 Months, 2 Weeks ago  
hello,

Does somebody have a solution? Many thanks for your help.

David
 
Logged Logged
  The administrator has disabled public write access.
#9377
Re:Loading xml data in html or php file 4 Months, 2 Weeks ago  
 
Logged Logged
 
Last Edit: 2012/01/10 17:51 By hendryschaulz515.
  The administrator has disabled public write access.
#9378
Re:Loading xml data in html or php file 4 Months, 2 Weeks ago  
Hi,

No update :-( . I'm searching a way to parse the flashblocks xml but I don't find a good solution.

Thank you.

David
 
Logged Logged
  The administrator has disabled public write access.
#9395
Re:Loading xml data in html or php file 2 Months, 2 Weeks ago  
So sorry for not replying, I did not see this thread. Did you even find a solution to parsing the xml file? I created a system for parsing the Flashblocks 3 data file but the Flashblocks 2 xml is different. None the less, it may help.
 
Logged Logged
  The administrator has disabled public write access.
#9397
Re:Loading xml data in html or php file 2 Months, 2 Weeks ago  
Hi,

Thank you for your answer. No I didn't find a solution to parse the xml file in flashblocks 2. I will be happy if you can help me to do that.

The idea is to use the data file to create a php of html5 version of the site using the same data file. So we can manage the site with flashblocks and have also a version for other devices which do not support flash actually.

Thank you again.

David
 
Logged Logged
  The administrator has disabled public write access.
#9398
Re:Loading xml data in html or php file 2 Months, 2 Weeks ago  
I would use php's simplexml. It makes parsing any xml file pretty simple. php.net/manual/en/book.simplexml.php
 
Logged Logged
  The administrator has disabled public write access.
Go to top