Closed Thread
Thread Tools Search this Thread
Unread 8th Aug 2011, 10:57 AM   #1
Pack Warrior
War Room Member
 
leppozdrav's Avatar
 
Join Date: 2011
Location: Europe
Posts: 230
Thanks: 12
Thanked 7 Times in 7 Posts
Default
What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

This XML file does not appear to have any style information associated with it. The document tree is shown below." why this error in Google chrome when i run my php project. What to code in php to solve this error?

leppozdrav is offline  
Unread 9th Aug 2011, 10:13 AM   #2
Ad network programmer
War Room Member
 
Workman's Avatar
 
Join Date: 2010
Posts: 115
Thanks: 59
Thanked 19 Times in 14 Posts
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

That's not really an error... It sounds like it's simply displaying an XML document.

It would help if you shared the url you're working on or at least some additional details about your site.
Workman is offline  
Unread 9th Aug 2011, 10:40 AM   #3
VIP Warrior
War Room Member
 
ereadergold's Avatar
 
Join Date: 2008
Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

Yes, a URL and some information about your project and what it is you are trying to accomplish would be helpful! The error message itself is pretty self-explanatory.

Bill
ereadergold is offline  
Unread 11th Aug 2011, 10:52 PM   #4
Warrior Member
War Room Member
 
Join Date: 2011
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
Blog Entries: 1
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

Thats just a warning

productsmith is offline  
Unread 15th Aug 2011, 10:04 PM   #5
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

What everone is saying is probably right. If its an XML document then its probably not ment to be viewed, XML is for sending data in a structured manner.

But incase you DID want the data to be viewed, attach a stylesheet:
Associating Style Sheets with XML documents 1.0 (Second Edition)

Normally you would pickup the XML data and put it where it needed to go, say into a database or process it so that you had control over what data you actually want to show before spitting it back out to the end user.

"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
- jamroom.net
Download Jamroom free: Download
ussher is offline  
Unread 16th Aug 2011, 03:36 AM   #6
Munir Razak
 
Join Date: 2011
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

ohh really..now i know thanx
munirz is offline  
Unread 16th Aug 2011, 12:30 PM   #7
Someone in Particular
 
GetFeeDomainName's Avatar
 
Join Date: 2011
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
Default
Re: What to code in php to solve this error
Share on: 
fb share twitter share gplus share more share

if that's a page that should render as webpage, then you are likely sending 'text/xml' or 'application/x-html+xml' Content-Type header.
in that case, try to add
PHP Code:
header('Content-Type: text/html'); 
just before the output.
(if it works afterwards, change your default httpd settings.)

if you are serving a plain XML, then the document string as shown is what you should expect.

GetFeeDomainName is offline  
Closed Thread


Bookmarks

Tags
code, error, php, solve

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:55 AM.