- 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 sphbecker · Posted
Close, but it is for any application starting, not just during boot time. In fact, it probably will not improve boot time at all because during a boot, the CPU is already boosting, so a pre-boost wouldn't change anything. I agree that it isn't exciting (especially considering every other OS already does it), but it is a good thing, even if they are just playing catch up. -
By cyberhash · Posted
Any so called performance increase will be in milliseconds, which nobody will actually notice in real world usage. -
By WaltC · Posted
All it does is use the CPU more efficiently during boot to speed up boot times. That's it. Yawn.... -
By sphbecker · Posted
It's not a one or the other kind of thing. Software should run efficiently, and the operating system should appropriately manage the CPU clocks. You could have the best most optimized software on earth, and it will still run faster if the CPU does a better job of boosting as needed. All this is doing is pre-boosting the CPU based on user actions, instead of waiting for the normal detection mechanism to kick in. If the OS knows it is about to need more CPU, why shouldn't it use that knowledge? It's the same idea of downshifting before passing someone, instead of just burying your foot into the peddle and waiting for the transmission to figure out what you want to do. -
By Copernic · Posted
Audacity 3.7.8 by Razvan Serea Audacity is a free, open source digital audio editor and recording application. Edit your sounds using cut, copy, and paste features (with unlimited undo functionality), mix tracks, or apply effects to your recordings. The program also has a built-in amplitude-envelope editor, a customizable spectrogram mode, and a frequency-analysis window for audio-analysis applications. Built-in effects include bass boost, wah wah, and noise removal, and the program also supports VST plug-in effects. You can use Audacity to: Record live audio. Record computer playback on any Windows Vista or later machine. Convert tapes and records into digital recordings or CDs. Edit WAV, AIFF, FLAC, MP2, MP3 or Ogg Vorbis sound files. AC3, M4A/M4R (AAC), WMA and other formats supported using optional libraries. Cut, copy, splice or mix sounds together. Numerous effects including change the speed or pitch of a recording. Write your own plug-in effects with Nyquist. And more! See the complete list of features. Audacity 3.7.8 changelog: #10688 Fixed an exception thrown when pasting into a newly-created track (Thanks, David Bailes (@DavidBailes)!) #10870, #10884, #10775, #10629 Fixed tone generation, waveform-scale setting, SetClip Name parameter, and clip-boundary command names for scripting and macros (Thank you, David Bailes (@DavidBailes)!) #11106 Fixed the loading of presets for the Distortion effect (A million thanks, David Bailes (@DavidBailes)!) #10947 Fixed paste into an empty audio track not preserving the source sample rate (Thanks, Juan Gabriel Colonna (@juancolonna)!) #10776 Allowed AltGr modifier in label and clip name editing (Thanks, Davide Peressoni (@DPDmancul)!) #9938 Added options to choose where silence is truncated (start/middle/end) (Thanks, Noah Rosenfield (@nosenfield)!) #9935 Added Podcast 2.0 chapters JSON export for label tracks (Thanks, Noah Rosenfield (@nosenfield)!) #10103 Improve UI on HiDPI displays on Linux/wxGTK (Thanks, Ivan A. Melnikov (@iv-m)!) #10099 Fixed MixerBoard Mute and Solo button display (Thanks, Ivan A. Melnikov (@iv-m)!) #10681 Fixed multichannel FLAC import #10999 Fixed envelope being broken after joining clips Download: Audacity 64-bit | Standalone ~20.0 MB (Open Source) Download: Audacity 32-bit | Standalone Download: Audacity ARM64 | Standalone View: Audacity Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
-
-
Recent Achievements
-
slackerzz earned a badge
One Year In
-
highriskpaym earned a badge
One Year In
-
highriskpaym earned a badge
One Month Later
-
highriskpaym earned a badge
Week One Done
-
FBSPL 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