Feb 11, 2010 5:20 pm
AlejandroSo I just don't get it.
here is a part of the xml code:
......
<weather>
<date>2010-02-11</date>
<tempMaxC>4</tempMaxC>
<tempMaxF>40</tempMaxF>
........
i can get the date with
echo " date",$xml->weather[0]->date;
so how comes that i can't get
echo " max temperatura ",$xml->weather[0]->tempMaxC;
Feb 11, 2010 5:38 pm
Michael Fesser.oO(alejandro)
>So I just don't get it.
>
>here is a part of the xml code:
>......
><weather>
><date>2010-02-11</date>
><tempMaxC>4</tempMaxC>
><tempMaxF>40</tempMaxF>
>........
>
>i can get the date with
>echo " date",$xml->weather[0]->date;
>
>so how comes that i can't get
>
>echo " max temperatura ",$xml->weather[0]->tempMaxC;
>
>here is a part of the xml code:
>......
><weather>
><date>2010-02-11</date>
><tempMaxC>4</tempMaxC>
><tempMaxF>40</tempMaxF>
>........
>
>i can get the date with
>echo " date",$xml->weather[0]->date;
>
>so how comes that i can't get
>
>echo " max temperatura ",$xml->weather[0]->tempMaxC;
The usual questions: What happens? Any error messages (make sure your
error reporting is configured properly)? Can you post a short, but
complete XML and some PHP that shows the problem?
Micha
Feb 11, 2010 7:48 pm
Doug MillerIn article <hl1e9v$714$1@ss408.t-com.hr>, "alejandro" <aleksandar27@BRISIOVOnet.hr> wrote:
>So I just don't get it.
>
>here is a part of the xml code:
>.......
><weather>
><date>2010-02-11</date>
><tempMaxC>4</tempMaxC>
><tempMaxF>40</tempMaxF>
>.........
>
>i can get the date with
>echo " date",$xml->weather[0]->date;
>
>so how comes that i can't get
>
>echo " max temperatura ",$xml->weather[0]->tempMaxC;
>
>here is a part of the xml code:
>.......
><weather>
><date>2010-02-11</date>
><tempMaxC>4</tempMaxC>
><tempMaxF>40</tempMaxF>
>.........
>
>i can get the date with
>echo " date",$xml->weather[0]->date;
>
>so how comes that i can't get
>
>echo " max temperatura ",$xml->weather[0]->tempMaxC;
What happens when you try?
Feb 11, 2010 11:17 pm
AlejandroHmmm.... sorry don't know what happened the formatting in the post has gone
and now it is even a bigger mess...
Previous Thread: Enhancing my search? very new to php
Next Thread: Manually close connection
Related Forum Topics
- Simplexml puzzle
- Simplexml - remove item
- SimpleXml select element by attribute value
- Simplexml -> assign node value will destroy object
- Simplexml adding 'encoding' attribute to xml declaration
- How can I add itunes rss xmlns namespace definition to a php simplexml document?
- Parsing Error
- XML parsing problem
- Need help with JSON parsing with PHP
- Issue with a xml parsing