Why won't it (simple dataset) work!

I'm trying to use spry to open a simple xml file. But all I
get are the table headings.
This is the xml:
<xml version="1.0" encoding="UTF-8">
<dtable name='table1'>
<datum>
<name>Robby</name>
</datum>
<datum>
<name>Bob</name>
</datum>
</dtable>
</xml>
This is the code:
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry/">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Spry Example</title>
<!--Link the Spry libraries-->
<script type="text/javascript"
src="includes/xpath.js"></script>
<script type="text/javascript"
src="includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript"
src="includes/SpryXML.js"></script>
<!--Create a data set object-->
<script type="text/javascript">
var dsData = new
Spry.Data.XMLDataSet("sample.xml","dtable/datum");
</script>
</head>
<body>
<div id="dataDiv" spry:region="dsData">
<table id="Data_Table">
<tr>
<th>Name</th>
<th>Date</th>
</tr>
<tr spry:repeat="dsData">
<td>{name}</td>
<td>---</td>
</tr>
</table>
</div>
</body>
</html>
Can someone point out the problem? Thanks in advance!

2 small things.
Change the first line of the XML file to
<?xml version="1.0" encoding="utf-8"?>
and then get rid of the closing </xml> tag and it will
work fine.
Or, change your XPath to "xml/dtable/datum"
Hope this helps.
Don

Similar Messages

  • Why won't my iTunes code work

    Why won't my iTunes code work helpppp

    Hi Benrad09,
    If you are having issues redeeming an iTunes Gift code, you may find the following article helpful:
    Apple Support: If you can't redeem your iTunes Gift Card or code
    http://support.apple.com/kb/HT6021
    Regards,
    - Brenden

  • HT4972 Why won't Kindle or instagram work on my I-Touch? Why do either of them require IOS 4 or 5?

    Why won't Kindle or instagram Apps work on my I-Touch?
    Why do either of them require IOS 4 or 5 and why can't Itouch V2 update to IOS 4 or 5 operating systems?

    1. The developer stopped supporting older iOS versions.
    2. A second generation iPod touch can be updated to iOS 4.2.1 but doesn't have enough RAM to run iOS 4.3 or newer.
    (82591)

  • Why won't logic 9.02 work with lion

    Why will logic 9.02 not work with Mac OSX Lion ????????

    The serial included with the TORRENT floating around the web for Logic 9 wont work on anything after 9.0.2
    $100 says this is why said user is freaking on a simple update... just sayin

  • WHY WON'T STICKY KEYS ACCESSABILITY WORK ON SAFARI/

    WHY WON'T STICKY KEYS ACCESSABILITY FEATURE WORK ON SAFARI? I AM A DOUBLE AMPUTEE AND THIS FEATURE REALLY HELPS ME.
    RANDY

    Do us all a favor, and unlock your Cap keys.  It's considered yelling, and it's a real turn-off for those looking to help posters here.

  • Why won't my lock button work?

    I went to lock my iPod and my lock button won't work. I can't even push it down, it's like stuck down in the hole but it won't pop back up. Everything works fine but I have to wait for it to auto-lock everytime I want to turn it off. Why won't the button pop back up?

    It looks like you have a hardware issue. I don't know why the button doesn't pop up, but You can enable assistive touch. Assistive touch gives you a virtual lock button, so that will solve you problem. You can enable it by going to Settings->General->Accessibillity->AssistiveTouch->On.

  • Why won't my "if" expression work?

    This calculation works:
    IF(A3<1,A3*10,IF(A3<5,20))
    Why won't this one:
    if(A4<1,B4==0,if(A4>1<=2,40,if(A4>2<=3,60,if(A4>3<=4,100,if(A4>4<=5,125)))))
    If you want me to send you the table that I am trying to make this work in, just let me know. Thanks,
    Elaine.

    Never mind, I figured it out! Whew.

  • Why won't megapack for iworks work on my mac?

    Why won't my megapack for iworks work on my macbook pro?

    only pages will work and its crap...what a waste of money.

  • Why won't time capsule router work?

    Why won't the time capsule's wireless router work to allow internet access?  Just got it, new 2 tb!  Lost the excitement of it all now!  Help!  Connecting to new MacBook pros (13" &amp; 2X15"s) as well as a Toshiba laptop.  Followed all the directions and backed up just fine, but have not been able to browse web at all with this crap!

    You do not have to load the airport utility.. a newer version is already included on the computer.
    Just go to the applications / utility directory and start airport utility.

  • Why won't combined AND statement work

    I want to exclude records based on two criteria's: status = 'M' and the status reason = 52.
    The table contains records with status = 'M' and status reason other than 52.
    Also the table contains records with status other than 'M' and status reason = 52 and I want to include those records.
    I first tried using the statement below reasoning that placing the two criteria's in parenthesis would combine them and only exclude records with M 52
    Where (nvl(Status_CD,'A') <> 'M' AND nvl(STATUS_RESN_CD,0) <> 52 )
    However the query removed all records with Status_CD 'M' and all records with Status_Resn_CD 52. 
    Using the Where Not statement worked.
    Where Not (External_Status_CD = 'M' and EXT_STAT_RESN_CD = 52 ) 
    I’m curious why the first statement didn’t work?
    Can anyone explain why the first query didn't combine the 2 statements but a Where Not did?
    Thank you - Mark

    HI, Mark,
    markjames9 wrote:
    I want to exclude records based on two criteria's: status = 'M' and the status reason = 52.
    The table contains records with status = 'M' and status reason other than 52.
    Also the table contains records with status other than 'M' and status reason = 52 and I want to include those records.
    I first tried using the statement below reasoning that placing the two criteria's in parenthesis would combine them and only exclude records with M 52
    Where (nvl(Status_CD,'A') <> 'M' AND nvl(STATUS_RESN_CD,0) <> 52 )
    However the query removed all records with Status_CD 'M' and all records with Status_Resn_CD 52.
    Using the Where Not statement worked.
    Where Not (External_Status_CD = 'M' and EXT_STAT_RESN_CD = 52 ) 
    I’m curious why the first statement didn’t work?
    Can anyone explain why the first query didn't combine the 2 statements but a Where Not did?
    Thank you - Mark
    Another way of looking at it:
    The condition (x AND y) will be TRUE when both x AND y are TRUE.
    If
    sub-condition x is    nvl (Status_CD, 'A') <> 'M'   and
    sub-condition y is  nvl (STATUS_RESN_CD, 0) <> 52
    then any row with status_cd = 'M' fails sub-condition x, therefore the compound condition is FALSE, regardless of status_resn_cd.
    Likewise, and row with status_resn_cd=52 fails sub-condition y, so the compound condition is FALSE regardless of status_cd.
    You used status_cd and status_resn_cd in one example; but
    EXTERNAL_status_cd and EXT_stat_resn_cd in the other.  That's quite confusing.  Also, you'll confuse everyone (including yourself) if status is abbreviated as stat in some places but not in others.  Either way is okay, but be consistent.  The same goes for abbreviating external as ext; pick one or the other, and use the same word in all places.
    Don't forget to check for NULLs.  If  external_status_cd and ext_stat_resn_cd can be NULL, you should say
    Where Not (    NVL (External_Status_CD, 'A') = 'M'
              and  NVL (EXT_STAT_RESN_CD,    0)  = 52
    depending on your requirements.

  • Why won't my HDMI output work after update my iPad to iOS6?

    After updating my iPad to iOS6 it won't play my videos on my tv via HDMI cable. The tv displays "invalid format" I don't know how to chnage the display settings on the iPad because maybe there are none. Is there some backdoor way to change the settings so maybe I can use my $40+ cables I bought?

    This is vatastrophic! I came to a congressional doctor meeting to give a lecture! It would't work!! Only iphone 4 projected muzzy picture and only on photo show!
    Are they crazy? Why did they fricked it up?
    Both were updated to iOs6!!!

  • Why won't my podcast url work

    I wan't to know why my podcast rss won't play. All my episodes show up, but they don't connect and play, all of my files are m4a except one, it is mp3 and that one plays. Isn't m4a  the same as aac. But I can, dowload the episodes though, and they work, you just can't play or preview them in itunes.

    Hi suzique15,
    Welcome to the Apple Support Communities!
    There may be a few different troubleshooting steps I would recommend in this situation. Please read over and use the attached article for troubleshooting this situation with your enter key.
    One or more keys on the keyboard do not respond - Apple Support
    Best regards,
    Joe

  • Why won't time capsule wont work with Lion?

    My Time capsule stopped working I installed Lion
    I get one of two error messages:
    The backup disk image “/Volumes/Brian Dunk's AirPort wirel/Brian Dunk’s iMac (2).sparsebundle” could not be accessed (error -1).
    Or
    Cannot complete backup error 6584
    Any ideas welcomed
    Brian

    The serial included with the TORRENT floating around the web for Logic 9 wont work on anything after 9.0.2
    $100 says this is why said user is freaking on a simple update... just sayin

  • Why won't Verizon Messages app work on phone with Wi-Fi only?

    I've successfully downloaded and installed the app from Google Play on a phone of mine that I only use wi-fi on.  There is no cellular service to this particular device.  It's set to airplane mode, with wi-fi on, essentially making it a 4.5 inch tablet, or like an android equivalent to an iPod touch.  When I start the app though, it displays the screen shown in the included screenshot, and won't let me connect to the service, despite the fact that a wi-fi connection is present.  I've seen that this is an issue that some others have had.  I have Verizon service with my main phone, I'm not sure why the app that supposedly lets you access your texts via wifi will only do that on tablets or phones with cell service.  Is there any way to get this working? Will there be any updates to allow the functionality that I'm looking for?  I've read that it was present at one time, so why the change?

    According to the Verizon website you are wrong.
    Verizon Messages - Verizon Wireless
    It states "
    Use Wi-Fi to send and receive messages on your smartphone, tablet, PC, Mac and web browser"
    I find personally that you are correct, is the website designed to mislead us? it is the same on the play store for google.
    The difference is not just in one place, it is everywhere it is advertised. So it was meant to work but to charge customers the function was removed is my understanding.

  • Why won't Adobe Bridge CC work with Photoshop CC (2014)?

    When I try to launch Bridge CC from Photoshop CC (2014), I get the Creative Cloud App window and Bridge won't launch.

    After reading a slew of blogs, I've come to the conclusion that Adobe is working on a fix, but it may be some time before that happens. It's really not a deal breaker, as one can launch Bridge first, and that will open PS CC 2014. Time wise it's not much of a difference.

Maybe you are looking for

  • How do I keep songs from an album together when importing?

    When I import music from a cd, often it is broken into pieces if there is a collaboration on that song. For example, Santana's Shaman album is almost all collaborations with various artists so it is imported as a huge number of separate albums. How c

  • Flat file as a source table in my mapping

    Hi all.. I am using owb 10gR2. when i debug with flat file and one target table,it is throwing error as it doesn't support flat file,you must access it through exteral table. But i dont want to use the external table. i want the flat file to be my so

  • Switching to clamshell mode while running

    I like to switch between clamshell mode and using the powerbook as a secondary display quite often. But I can't figure out how to switch my powerbook into clamshell mode without first putting it to sleep by closing the lid, and then unplugging and re

  • Facebook on Nokia Lumia 920

    Well, what is the best Facebook app for the Lumia 920, have to admitt that I dont like the one I have found ! Anyone ? Im mostly working in closed group, adding pos, pitcures and so on ! !

  • Data handling and graphs

    I originally wrote the graph program to handle the data in a text file that was organized like this... vertex a vertex b vertex c vertex d edge a c edge a d edge d b and now I have to change the main to accept a datafile containing... a b b c c e d g