473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

XML instead of text

Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos

Aug 10 '06 #1
7 1506

Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos
XML is text -- in a specific format. I'm not entirely sure what you're
asking.

Aug 10 '06 #2
ZeldorBlat wrote:
Nicos wrote:
>Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos

XML is text -- in a specific format. I'm not entirely sure what you're
asking.
You have to look at the XML parsing classes to parse the file to extract
the values..

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Aug 10 '06 #3

IchBin wrote:
ZeldorBlat wrote:
Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos
XML is text -- in a specific format. I'm not entirely sure what you're
asking.

You have to look at the XML parsing classes to parse the file to extract
the values..

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Can't i just copy an xml file from another server to mine instead of
parsing the file?

Aug 11 '06 #4

ZeldorBlat wrote:
Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos

XML is text -- in a specific format. I'm not entirely sure what you're
asking.
When i open this file in Internet Explorer or Firfox, it doesn't show
the xml file as usual. (with +'s and -'s) just a plain uncolored text.

Aug 11 '06 #5
Nicos wrote:
IchBin wrote:
>ZeldorBlat wrote:
>>Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos
XML is text -- in a specific format. I'm not entirely sure what you're
asking.
You have to look at the XML parsing classes to parse the file to extract
the values..

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
_________________________________________________ _________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

Can't i just copy an xml file from another server to mine instead of
parsing the file?
Sorry, then I do not understand the value of this xml file. What is it's
purpose?

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Aug 11 '06 #6

Nicos wrote:
ZeldorBlat wrote:
Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>
>
and i get the XML data from other domain as text. How can i get it as
XML?
>
Thanks,
Nicos
XML is text -- in a specific format. I'm not entirely sure what you're
asking.

When i open this file in Internet Explorer or Firfox, it doesn't show
the xml file as usual. (with +'s and -'s) just a plain uncolored text.
I get highlighted text with +'s and -'s in both FF and IE

Tim

Aug 11 '06 #7

Tim Hunt wrote:
Nicos wrote:
ZeldorBlat wrote:
Nicos wrote:
Hello people,
i do this on my domain:
<?php
header("Content-type: text/xml");
header("Content-Type: ".$contentType."; charset=UTF-8");
readfile("http://www.contra.gr/rss/home?type=latest");
?>

and i get the XML data from other domain as text. How can i get it as
XML?

Thanks,
Nicos
>
XML is text -- in a specific format. I'm not entirely sure what you're
asking.
When i open this file in Internet Explorer or Firfox, it doesn't show
the xml file as usual. (with +'s and -'s) just a plain uncolored text.

I get highlighted text with +'s and -'s in both FF and IE

Tim
Duh. I was looking at www.contra.gr not your copy

Try using the same content-type as them, application/xml

Tim

Aug 11 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
1
by: da_fox | last post by:
Ok. I give up. I appeal to the css gurus out there for their benevolence. I'm trying to center some text on an arbitrary vertical on a page using CSS instead of nested tables. It seems so easy...
25
by: dixie | last post by:
I have some code that adds new records into a table for each ID in a list box when a button on a form is clicked. This works fine. My problem now is that I wish to be able to edit all the records...
10
by: Deano | last post by:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanksMartin
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. &gt;strong&lt;...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
24
by: tizi_de | last post by:
Hello all, I'm looking for a sample program in C to print out lines not to the standard MS Dos Box but into a different control e.g. text control. Has C the possibility to do printouts to a...
1
by: eqiz | last post by:
I'm looking for a way to print stuff from my program. I have searched and searched for a way to print and the only thing I have found is PrintFORM which only takes a picture of the form and prints it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.