Now, I know my latest threads asking for help really are starting to make me sound pretty stupid :p but, yet again, I am stumped :s
I can't talk about this too much as coursemates who know I moderate Neowin may steal ideas off me ;) I will try and give as much information as possible though :)
Firstly, I am retrieving data from an XML file, in order to output and use that data for other means (eventually showing the location on a Google Map, using the Google Maps API). This has all worked out very well and I have got all of the information, including the location, from the XML file. The only problem is, I cannot get the latitude and longitude data. Both the latitude and longitude have colons in the tag names - "geo:lat" and "geo:long".
The way I have been retrieving this data works for everything except these XML tags which have colons - it puts a red squiggly line under it in Komodo Edit and says there is a parse error.
I find it odd because my process works for every tag which doesn't have a colon.
I'm not going to explain how I have parsed this XML document or retrieved the data from the document, unless I need to, because I don't want coursemates stealing ideas ;) Let's just say, it definately works because it has worked for all of the tags without colons.
I'm looking for a way to maybe escape the colons, or just anything which will work. I've tried creating a variable and assignment a colon to that, then using the variable in between "geo" and "lat" and I've tried using the str_replace() function, but that doesn't seem to work.
is not working and I know it's the colons which are causing the problem as it works if I take them out (I can't just take them out though as that is not what they are called in the XML file)
Here is the XML file I am retrieving the data from.
Any help really would be very much appreciated :) Thank you in advance.
Wow, imagine you dump hundreds of hours into completing things and unlocking stuff and you lose it all.
Back in the day when cheats were built into games, you could at least unlock things again that way without spending hundreds of hours again. But those days are long gone for some reason as no one builds cheats into games anymore.
So it's even more painful that studio that's on its 6th installment **** it up so badly.
Spotify finally removes the disco ball app icon in the latest update by Ivan Jenic
Image: Spotify
Spotify has just released an update that removes its now infamous disco ball icon. The update reverts the app icon to the familiar flat green logo after weeks of mixed reactions online. The icon arrived on May 13 as part of the company's 20th anniversary celebration and was always intended to be temporary, though Spotify only confirmed that after the backlash started.
The disco ball took the internet by storm, as the reception was split. A vocal group of users called it ugly and disorienting, with some iOS users noting that the 3D glowing effect made the app look like it was stuck mid-update.
On the other end, the icon picked up a following of its own. Its retro, three-dimensional look immediately stood out against the flat, minimalist aesthetic that has dominated app design for years. It even started a small movement, spawning what people started calling "discomorphism," a mashup of disco and skeuomorphism. Other brands started posting disco ball versions of their own logos, probably in an effort to ride the wave of memes that flooded the internet during late May.
Spotify has had a turbulent relationship with its user base lately. Besides the disco ball icon, which certainly wasn't appreciated by everyone, the company has also received backlash for its willingness to include AI-generated music on its platform.
On May 17, Spotify promised the old icon would return “in a few weeks.” And now it looks like that time has finally arrived.
So, whether you liked the disco ball or it made you uncomfortable, it’s now gone for good. The next time you update the Spotify app on your phone, the old, flat-design icon will return.
Question
Calum Veteran
Now, I know my latest threads asking for help really are starting to make me sound pretty stupid :p but, yet again, I am stumped :s
I can't talk about this too much as coursemates who know I moderate Neowin may steal ideas off me ;) I will try and give as much information as possible though :)
Firstly, I am retrieving data from an XML file, in order to output and use that data for other means (eventually showing the location on a Google Map, using the Google Maps API). This has all worked out very well and I have got all of the information, including the location, from the XML file. The only problem is, I cannot get the latitude and longitude data. Both the latitude and longitude have colons in the tag names - "geo:lat" and "geo:long".
The way I have been retrieving this data works for everything except these XML tags which have colons - it puts a red squiggly line under it in Komodo Edit and says there is a parse error.
I find it odd because my process works for every tag which doesn't have a colon.
I'm not going to explain how I have parsed this XML document or retrieved the data from the document, unless I need to, because I don't want coursemates stealing ideas ;) Let's just say, it definately works because it has worked for all of the tags without colons.
I'm looking for a way to maybe escape the colons, or just anything which will work. I've tried creating a variable and assignment a colon to that, then using the variable in between "geo" and "lat" and I've tried using the str_replace() function, but that doesn't seem to work.
Here is the problem -
is working
is not working and I know it's the colons which are causing the problem as it works if I take them out (I can't just take them out though as that is not what they are called in the XML file)
Here is the XML file I am retrieving the data from.
Any help really would be very much appreciated :) Thank you in advance.
Link to comment
https://www.neowin.net/forum/topic/761114-php-retrieving-data-from-an-xml-tag-when-there-is-a-colon/Share on other sites
3 answers to this question
Recommended Posts