Hi,
I am trying to parse some XML and having quite a difficult time. In particular, trying to get the name of the stadium (AT&T Center) or the city and state. See below.
I am able to easily parse anything from the "event-metadata" element or the "site-metadata" element using "On Element()" with "XML Attr()". It seems to me that the stadium name should be an attribute of the element "name", but JMP doesn't seem to recognize it that way.
An online version of the XML is available here: http://showcase.xmlteam.com/open_rendition.php?id=2129
Any help would be much appreciated. Maybe there is a problem with the way it is marked up by the publisher?
Thanks
-Mike
<sports-event>
<event-metadata xmlns:fs="java.io.File" date-coverage-type="event" event-key="l.nba.com-e.896939" event-status="pre-event" date-coverage-value="l.nba.com-e.896939" start-date-time="20160114T200000-0500" time-certainty="certain" event-name="Regular Season"site-alignment="home">
<site>
<site-metadata site-key="l.nba.com-s.538102" capacity="18581">
<name full="AT&T Center"/>
<home-location city="San Antonio" state="Texas" country="USA"/>
</site-metadata>
<site-stats/>
</site>
</event-metadata>
<team id="l.nba.com-t.21">
<team-metadata xmlns:fs="java.io.File" team-key="l.nba.com-t.21" alignment="home">
<name first="San Antonio" last="Spurs"/>
</team-metadata>
<team-stats date-coverage-type="season-regular"/>
</team>
<team id="l.nba.com-t.11">
<team-metadata xmlns:fs="java.io.File" team-key="l.nba.com-t.11" alignment="away">
<name first="Cleveland" last="Cavaliers"/>
</team-metadata>
<team-stats date-coverage-type="season-regular"/>
</team>
</sports-event>