- 0
[PHP] Retrieving data from an XML tag when there is a colon
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By xrobwx71 · Posted
Rustdesk. https://rustdesk.com/ You can even set up your own relay server (if you desire). -
-
By Fiza Ali · Posted
ICYMI: 4TB Corsair MP700 PRO SE SSD is still selling at its lowest price by Fiza Ali Amazon US and Newegg are still offering the 4TB Corsair MP700 PRO SE solid-state drive at its new lowest price. The MP700 PRO SE is an M.2 2280 SSD that employs a PCIe 5.0 ×4 interface with NVMe 2.0, delivering sequential read speeds of up to 14,000MB/s and sequential write speeds of up to 12,000MB/s. It uses high-density 3D TLC NAND and carries a Total Bytes Written (TBW) rating of 3000. Furthermore, the drive can withstand vibration from 20Hz to 80Hz at 1.52mm and 80Hz to 2000Hz at 20G, as well as shocks up to 1500G. The drive incorporates AES 256-bit encryption and supports Microsoft DirectStorage, allowing compatible games to load assets directly to the GPU for reduced load times. Moreover, it operates within a temperature range of 0°C to +70°C, and can be stored between –40°C and +85°C at up to 93% relative humidity (40 °C). A heatsink is not included, so users must provide their own or rely on a motherboard’s integrated SSD cooling solution to maintain optimal thermals. Finally, the MP700 PRO SE is compatible with Windows 10, Windows 11, and macOS systems that provide an M.2 slot, and communicates via a standard M.2 2280 interface connector. 4TB Corsair MP700 PRO SE SSD: $549.99 (Amazon US) 12% off - $549.99 (Newegg) 9% off This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. You can also check out other SSD deals here. For hard disk drives, you can head over to our HDD deals section to see if anything from there matches your requirements. Make sure you also browse through Amazon US, Amazon UK, and Newegg US to find some other great tech deals. As an Amazon Associate, we earn from qualifying purchases. -
By Steven P. · Posted
"requiring individual licences from all rights-holders would impose an unmanageable administrative burden and could deter AI investment in the UK." Ah so plebs (humans) will forever be required to secure license, but AI should get a broad pass because it's too complicated. Not so "intelligent" after all? Plus, every opt out I have signed regarding Meta using my data was never presented to me in a clear way, I had to discover it here on neowin or some other news site with a link to do it. So what the government is saying is that they prefer to offer an opt out just to cover their asses, but good luck us plebs finding such a thing! -
-
-
Recent Achievements
-
ClarkB earned a badge
First Post
-
Epaminombas earned a badge
Week One Done
-
Prestige Podiatry Care earned a badge
Week One Done
-
rollconults earned a badge
Week One Done
-
lilred1938 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
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