|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
xml diplay
hi ,
im trying to display the results of a query to a mysql database in xml form for file transfer, however the only way i can get the browser to display the actual tag brackets is to leave whitespace between the brackets and the text at the moment. could someone please help me to get the browser to display the tags so that i can continue with my project as im banging my head against a brick wall at the moment! at the moment im using echo "<tag>".$row[0]."</tag>", but it looks like the browser thinks im writing html tags that it doesnt understand., thanks ken |
|
#2
|
|||
|
|||
|
RE: xml diplay
If you want to output an xml file, then use this prior to any other output:
header("Content-type: text/xmln"); header("Content-Transfer-Encoding: ascii"); |
|
#3
|
|||
|
|||
|
RE: xml diplay
If U just want < and > to appear, encode them as entities (< and > resp.) or use htmlentities() on your whole page.
|
|
#4
|
|||
|
|||
|
RE: xml diplay
i would advise u to use
WDDX.. It really speeds up the way i do web application. Before, i used xml expat... now, i throw it away already |
|
#5
|
|||
|
|||
|
RE: xml diplay
i would advise u to use
WDDX.. It really speeds up the way i do web application. Before, i used xml expat... now, i throw it away already |
|
#6
|
|||
|
|||
|
RE: xml diplay
cheers guys, it loosks like ive got it going now. thanks for the help.
ken |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > xml diplay |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|