Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 10th, 2005, 10:30 AM
Authorized User
 
Join Date: Jan 2004
Location: Manchester, , United Kingdom.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Ashleek007
Default XML with php

<?xml version="1.0" encoding="iso-8859-1"?>
<graph caption='Decline in Net Interest Margins of Asian Banks (1995-2001)' subCaption='(in Percentage %)' yaxisname='Points' xaxisname='Country' numdivlines='3' zeroPlaneColor="333333" zeroPlaneAlpha='40' numberSuffix='%'>
<set name='Taiwan' value='-0.33' color='F23456'/>
<set name='Malaysia' value='-0.27' color='FF6600'/>
<set name='Hong Kong' value='0.40' color='009966' />
<set name='Philippines' value='0.6' color='CC3399'/>
<set name='Singapore' value='-0.8' color='FFCC33' />
<set name='Thailand' value='-2.2' color='F23456'/>
<set name='India' value='1.2' color='FF6600'/>
</graph>

Ive got some xml data here shown above, but instead of having this sample data I want to include some PHP variables i have already set, for example, instead of having Taiwan, it would display the value stored in the php variable $CountryName ??.

Is it possible to do this? if so how would i go about it? maybe to have an 'include' statement in the xml, to include the PHP variables? Or maybe to embed the XML into my php file? (although ive tried to do this and it doesnt seem to work as i saved it as a PHP file)

Any help is appreciated!

Thanks
Ash

My new web design domain
www.askmultimedia.co.uk
__________________
My new web design domain
www.askmultimedia.co.uk
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL export XML using PHP lla Access 0 May 30th, 2008 11:11 AM
CSV and XML with PHP NEO1976 PHP How-To 1 July 17th, 2006 02:33 AM
generating XML through PHP Ashleek007 Beginning PHP 1 January 27th, 2006 08:16 AM
XML generation from PHP Ashleek007 XSLT 0 January 23rd, 2006 08:27 AM
Cron with PHP + XML d912mv Linux 1 October 22nd, 2004 09:26 AM



All times are GMT -4. The time now is 09:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.