PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old May 24th, 2002, 01:03 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old May 24th, 2002, 01:20 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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");


Reply With Quote
  #3  
Old May 25th, 2002, 12:58 AM
greggory greggory is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reims, France
Posts: 82 greggory User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: xml diplay

If U just want < and > to appear, encode them as entities (< and > resp.) or use htmlentities() on your whole page.

Reply With Quote
  #4  
Old May 28th, 2002, 07:00 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #5  
Old May 28th, 2002, 07:00 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #6  
Old May 29th, 2002, 01:44 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: xml diplay

cheers guys, it loosks like ive got it going now. thanks for the help.

ken

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > xml diplay


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway