E4X and reserved characters in names

I'm receiving an RSS feed from a source I can't change. Each
item record has the following structure...
<item xmlns:media="
http://search.yahoo.com/mrss/">
<title>Sample Title</title>
<link>
http://sampleURL.com</link>
<description>Some text here</description>
<pubDate>A Date</pubDate>
<media:thumbnail url="
http://sampleImageURL.com"
/>
</item>
myXML is loaded with the list of <item> nodes and I'm
trying to get the image URL using:
for (var i=0; i<3; i++) {
trace(myXML
.child("media:thumbnail").@url);
It returns nothing! I get the URL using:
for (var i=0; i<3; i++) {
trace(myXML.children()[4].@url);
This is a problem if the feed changes it's structure. I'd
much rather get the value by name but it doesn't seem to work. Any
suggestions?
Stuart

You have to declare a Namespace to get to your data.
Something like this:

Similar Messages

  • How do I remove spaces and special characters from the file name during rendering?

    I understand that I can set LR_renamingTokensOn to true, but I would like to replace all spaces in the file name with an underscore and remove characters not in the range A-Z and 0-9. What's the easiest way to achieve this?

    local photo = catalog:getTargetPhoto()
    local sesn = LrExportSession {
        photosToExport = { photo },
        exportSettings = {
            -- ... (determine from export preset) - whatev you want, just be sure you set export directory: LR_export_destinationPathPrefix
            LR_tokens = "{{custom_token}}",
            LR_tokenCustomString = LrPathUtils.removeExtension( photo:getFormattedMetadata( 'fileName' ) ):gsub( "[ %c]", "" ) -- remove spaces and control characters
    sesn:doExportOnNewTask()

  • Oracle can not support upto 32 characters table name and field name ?

    hi
    oracle up limitation ?
    create table aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(a char);
    Error
    ORA-00972:identifier too long
    or
    create table a (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa char);
    Error
    ORA-00972:identifier too long
    Oracle can not support upto 32 characters table name and field name ?
    It is true?
    null

    Hello All
    It's been a year after those posts about the limit of identifiers in Oracle Database. Does anybody know what can be done to get rid of that primitive limit? We are developing using Application Servers, Java, generated Code and a very nice object model, in which we can't just use abreviations because of early database age memory shortcomings.
    We are currently using 8i in a very large organization. Is there any chance this version can be configured to allow larger identifiers? Is upgrading to 9i going to solve this problem? Is Oracle Databases really doomed forever because of a 20-year-ago limitation?
    Please, I do like Oracle Databases. I don't want to be flooded with quick answers like "just use 32 character identifiers". I would like to hear a serious solution. Is anybody there still locked in the 8.3 filename paradigm of MS/PC-DOS? Does anybody has to fit an entire Enterprise System in segmented 640Kb of memory? Does anybody has to use monochrome character mode interfaces? Of course not those in the mainstream.
    I also know that other hadrware and software products have lots os limitations. Take Windows 2000. Its command line has a limit of 255 characters! You can't have more than 4GB of memory in a PC! However, one can't expect one mistake to justify others.
    I wish I were very wrong in this respect, and all it should be necessary is to turn on some kind of configuration parameter in 8i to allow us to develop high quality code.
    Thanks for your attention.
    Please, feel free to contact me if you have a solution.
    [email protected]

  • I'm in iPhone 5.  I transfer photos to a Windows 7 PC, using the USB cable.  Lately, the photos are appearing in Windows Explorer within monthly folders, with gibberish titles.  The folder names will be 8 random letters and numeric characters.  I ten

    I'm in iPhone 5.  I transfer photos to a Windows 7 PC, using the USB cable.  Lately, the photos are appearing in Windows Explorer within monthly folders, with gibberish titles.  The folder names will be 8 random letters and numeric characters.  I tend to let photos build up, so there are about 2 years worth of these monthly folders… Between 20 and 25.  This is a huge hassle… I'm unable to tell what months are in each folder, by the folder name.…  Have to open each folder to see which month is in there.  I want to be able to look at all the photos on the iPhone in one view, as I was able to in the past.  How do I stop this foldering of photos, by months??  Thank you.  BC

    I have the same issue. I searched and finally got only one answer is -- Apple suggest customer using iMAC to transfer and backup photos instead of Windows. How great the solution is it!

  • Object name must have between 000003 and 000009 characters

    Hi BW Experts,
    When I am trying to create a cube I am getting the below error message:
    Object name Z0FIGL_01 must have between 000003 and 000009 characters. Message no. R7112
    It would be great if some one can help me to resolve the issue...
    Regards,
    Reddy

    Hi
    The infocube technical name must be in between 3 to 9 characteristics length
    i.e,Min 3 Char & Max 9 Char
    is ZOFIGL_01 is ur object name ?its defined within limits,need to verify:)
    hope this helps
    Sriman
    Edited by: Sreeman on Apr 11, 2008 9:34 PM

  • When submitting app and Reserv Name for App...

    When submitting App to Windows Store and Reserv Name for App... Is this the only chanse you have for a name, or can you change it later.
    It is my first app, I want it in several markets, With local names...If possible...
    But I am not sure what to Call it, so I am hopeing it is not an ONE TIME thing.
    Grettings from Norway -Tonheim-

    Hi Dev,
    It is not a onetime thing and the following article should assist you if you would like to change the name after publishing
    http://msdn.microsoft.com/en-us/library/windows/apps/hh694077.aspx
    The heading you are looking for is “To rename an app that has already been published”
    This article also provides some supplemental information for you on the same subject -
    http://blogs.technet.com/b/adventuresinappdev/archive/2012/11/19/changing-your-published-windows-store-app-name.aspx
    Thanks!

  • Should I use reserved characters?

    Hi
    I am relatively new to HTML and ASP and have been asked to help update intranet and website pages for a company who very suddenly found themselves without a web developer. I took pages that are currently on the website and changed the content to show the new press release. Everything works absolutely fine in various browser, various versions of browsers and operating systems. The one thing that worries me is I did not use reserved characters anywhere, where I noticed the previous web developer did. Should I have used them or is it not needed anymore as browsers have changed? Is it may be needed for software used by the visually impaired?
    Examples of where she used it:
    New Zealand - I just used New Zealand
    &ldquo; and &rdquo; - where I just used " "
    Any help would be much appreciated!

    The quote characters you are describing are the "curly quotes" or the ones that look like two commas look as opposed to "dumb quotes" which look like double straight lines.
    I'm a big fan of dumb quotes because all browsers will show them -- even very old browsers. Lots of people freely copy and paste from Microsoft's Word (which is automatically set to use "smart quotes" or "curly quotes") and they'll see Microsoft's Internet Exploder render them correctly, while other browsers will show a diamond with a question mark in their place. This starts to get really ugly in a website when you look at it in Apple's Safari or in Mozilla's Firefox. So I tend to specify the dumb quotes and will take great pains in my code to put them in (and keep Dreamweaver from setting up the curly quotes).
    These extended characters as defined by the W3C are mandatory and I prefer to carefully add them using search and replace. The biggest offender is the ampersand character because that initiates an extended character in modern XHTML code and there is an old US telephone company that uses that in their name. Dreamweaver CS3 didn't notice that I was trying to use the ampersand character and simply put that character into the text. I got problems with the W3C validator, despite the fact that every browser I looked at rendered the ampersand correctly.
    So I have become very protective about quotes, choosing to mostly not use them (dumb or smart) and, instead, to use styles to indicate when someone is being quoted, like an indent or a paragraph style that is italic or a different color or typestyle.
    But your answer is you must. And this is where Dreamweaver's Find and Replace can be your friend. If you do your searches for characters that need to be expressed differently in the source code itself, you'll find it most helpful.

  • The Diff Between Pre-Order and Reserved

    Pre-Order:
    You walk into the store between the 24th and the 1st of July and walk out with an iPhone 4.
    Reserved:
    You stand in line after all the pre-order people have gotten their iPhones (or if they don't show up, their phone is held for 7 days) and any extra phones are given to you, in a first come, first serve of the people who reserved. You are not guaranteed to get one.
    No Pre-Order or Reserve:
    You get dibs on the phone after all the reserve people have gotten their phone.
    End of story. Please stop asking.

    Sorry, that doesn't make any sense. I mean, I get that a lot of people don't know there's even a difference between "pre-order" and "reserve", but why would "reserve" people have to wait until after all the "pre-order" people get their phones? The Apple store employees know not to give away the pre-order phones, I'm assuming they're pulling from a different "pile".
    And there have been a few people on here who have said that Apple employees assure them there is an actual phone with their name on it. Difference is, their phone isn't programmed to their account yet and the reservation expires at the end of the day (as opposed to pre-ordered phones which expire after 7 days.) Not that the Apple store employees know all, they sure didn't today, but if it's a consistent answer like this, I'm inclined to believe them. Also, then, what's the point in telling the reservation people to come at 7AM if they're not even going to start giving them out then?

  • MobileMe Gallery and international characters

    (May this serve as a warning to others.)
    I recently had trouble posting some vacation photos to a Gallery. My initial organization included a roll named Málaga (that's an accent on the first 'a'; it's a city in Spain). Later I organized other albums but the files' pathnames still contain the accented letter.
    Posting an album to a MobileMe Gallery resulted in the error:
    "An error occurred with the publication of album "[whatever]." Request to the server failed".
    There were no errors listed in my Console logs.
    I've found Apple warnings about having punctuation marks in photos and videos but this isn't quite the same issue.
    The problem was very stubborn and I didn't realize the cause until I created another iPhoto Library and happened to use different names for rolls, etc.
    A bug report has been filed.
    ...Neil

    Neil:
    Using non standard asci characters in site names has always been a problem. Thanks for the heads up. Here's some information I've gleamed from the iWeb forum regarding site/page names:
    Renaming a website or webpage
    You can rename a site or page at any time by double-clicking its name in the site organizer and typing the new name.
    The page name appears at the top of the visitor's browser.
    The site name is included in the website's address (URL):
    http://web.mac.com/your account name/ or
    http://web.me.com/your account name/
    Renamed pages and sites (as well as the site's URL) change online the next time you publish.
    IMPORTANT: If you rename a site, previously created links to your site won't work; be sure to notify your visitors, especially your blog or podcast subscribers.
    iWeb now converts spaces in site names to "_". Also avoid non-Roman characters; many get converted to numbers when you publish.
    Other characters that aren't recommended for use in website names are: forward and backward slashes (/ \), brackets ([ ]), tilde (~), exclamation point !, question mark (?), "at" sign (@), number sign (#), dollar sign ($), ampersand (&), asterisk (*), colon (:), equal sign (=), comma (,), and double quotation marks ("). Using these characters may result in names with strange numbers in them.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Bug and Forbidden characters in tags?

    I have noticed some differences in behaviour between Safari and Firefox (in 10.5)
    Safari appears to preventing me from entering certain characters in a tag name.
    Particularly, the comma , the less than < and the ≤ i.e. a single key with or without the shift or opt key.
    Whereas Firefox allows all chars to be used.
    Is this intentional or a bug? I would very much like the freedom to use the chars I want. (I have used Firefox to create a tag called <tag> to no ill effect, which I DON'T intend to make use of for obvious reasons)
    I have also noted that the 'select multiple tags for a search' facility that appears after a 'tag search' does NOT work in Firefox, it results in a 'search with no restrictions' and therefore finds all pages.
    Forgive my ignorance but how do I register these as bugs (if they are?)

    If you have an ADC membership, you can file bugs at bugreport.apple.com. If not, say so in a reply to this message and I'll file the bugs myself.
    Originally, the comma character was meant to serve as a delimiter for data entry -- when tagging a page, you can type foo,bar,baz and get three tags. The workaround is to copy and paste the tag name with the comma... that should work fine, and in the future you can use autocomplete to enter those tags.

  • Reserved characters prepended by the masking delimiter in EDIFACT

    Hi All
    I have a X2E mapping where I may get the reserved characters like +:'? in the input xml.
    What happens is that BICMD prepends the reserved characters by the default masking character ?.
    For example my input is       apple+ball:bat's
    then my BICMD output is      apple?+ball?:bats?'s
    what i want is that input should remain unchanged in the output of the BICMD.
    Also i dont want the UNA segment to appear in the BICMD output.
    Does any one know what properties i need to change in the BIC MD in order to achieve the desired output?

    JTextField has PlainDocument as Model. Write your own PlainDocument and set this as model to JTextField.

  • PowerBook G4 boots to unfamiliar login. List of known user accounts does not appear and original admin user name and password is rejected. What is going on here?

    PowerBook G4 boots to unfamiliar login. List of known user accounts does not appear and original admin user name and password is rejected. What is going on here?

    There are no children, nor other suspicious characters that have "played" with my computer. One moment I'm in, the next time I turn on/restart the powerbook I'm at a screen with the name of the hard drive and two fields: username and password. Not a list with pictures and names ie 'Katie Jo' with an orange icon and 'Guest' with a silhouette of a head.
    In an attempt to remedy this problem, I backed up files using target disk mode and firewire cable. I then, rebooted in single user mode, typed in the correct script and essentially made the computer appear virgin again. Original start up welcome screen display with multiple languages, and then set up prompts such as language, network, and registration. After completing the cues and the "just a few more questions" page, I press continue and am left at a grey standstill, with the continue button greyed out, and no other actions. I'm only able to "go back" by clicking the go back button, all the way to the beginning of the set up, and as I proceed through the steps a second time, I'm greeted with the same halt. What is this?

  • We have an itunes account on our desktop and my kids have it on their ipod and iphone. I went in and changed our user name from my old e-mail address which is no longer accessible to my new one and now either of my kids can access the itunes store..

    We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
    Can this be fixed??

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

  • Zune and reserved space problem

    Hi all, I just started using lumia 710 and finding it a great, fun and highly efficient device. One minor problem I am getting is with zune and reserved storage space.
    If I install a game/app in phone, the reserved space bar increases as expected. But the problem is that, even if I uninstall the game/app, the reserved space bar does not decrase, it stays the same as when the game/app was installed. so if i try out a few apps/ game and remove them later, i lose the equal amount of space from zune media storage. For example I tried out couple of xbox live titles and removed them later, net result --> my reserved space increased ~500mb while i lost 500mb from zune media free space.
    if anyone can help me to sort this out, I will be very much grateful.
    P.S. from phone i see i have ~ 3gb free space out of 6.28 gb. thanks

    Additionaly, I have all my music files in User/Music & in Downloads. I also see my iTunes "Media Folder" is located in User/Music/iTunes and is 20GB...the size itunes says.

  • Ive deleted contacts from my contacts list but they still pop up when i go to text and type in the name of a current contact. .  How can i delete them off my phones memory for good?

    Ive deleted contacts from my contacts list but they still pop up when i go to text and type in the name of a current contact. .  How can i delete them off my phones memory for good? iPhone 4S

    At the present time, the only way to clear that is to restore the phone as new.  Perhaps a future iOS update will give us the option to clear that cache.

Maybe you are looking for

  • How to find imei number

    hi my name is james bowd and i was wondering how to find my imei number/code as i need prof that the iphone is mine please reply on [email protected] thank you

  • G4 Mac Mini with Toshiba CRT HDTV

    Hello all. I'm trying to hook up my Mac Mini (original G4 model) to my Toshiba HDTV (30HF85) using a Dvi to HDMI cable (DVI-D; a basic cable purchased from amazon). Unfortunately, I'm not getting any picture at all - just a black screen. I'm sure tha

  • Will Apple make a desktop app for Beats Music?

    Will Apple make a desktop app (OS X) for Beats Music? Seems to make sense. Can Apple make THAT kind of  decision, now that the deal is done? I would love to use it when on my MBP.

  • Firewire 400/800 Questions

    Hello - I recently upgraded to a new 24" iMac and noticed that there is only one firewire 400 port (as opposed to my previous G5 which had two.) In my old configuration I had an external drive connected to one of the firewire 400 ports and all of my

  • UPS Set-up Advice. Distance from computer and display?

    I have just purchased the APC BX1500 UPS and wanted some advice on set-up. If is fully charged and ready to go. Is there a recommended safe distance in needs to be away from my Mac Pro. It looks like it needs to be 30cm away from the monitor does tha