R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Using List-X with XML
Last Post 22 Aug 2006 08:28 PM by contactdp. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
EncoderUser is Offline
New Member
New Member
Posts:37

--
07 Jun 2008 12:54 AM  
Hello All,

I am trying to use a list-x module to sync up some XML GPS Data, with an existing database. The XML is in the following format:

<?xml version="1.0" ?>
- <ATDataLatest>
- <Unit ID="5648435671" Nick="BJO">
- <Record Cached="N" TowerLocation="N">
<Time Elapsed="17 days 1 hour 28 minutes">2008-05-18 15:07:42</Time>
<Status BatteryLevel="2" GPSLevel="0" TowerLevel="3" />
<GPS Lat="41.00314" Lon="-74.05692" Alt="98" Speed="0" Heading="0" Direction="-" />
</Record>
</Unit>
- <Unit ID="1371827338" Nick="DFJ">
- <Record Cached="N" TowerLocation="N">
<Time Elapsed="27 days 7 hours 35 minutes">2008-05-08 09:00:39</Time>
<Status BatteryLevel="0" GPSLevel="3" TowerLevel="2" />
<GPS Lat="35.38571" Lon="-94.40095" Alt="314" Speed="0" Heading="0" Direction="-" />
</Record>
</Unit>
- <Unit ID="2613909209" Nick="RJS">
- <Record Cached="N" TowerLocation="N">
<Time Elapsed="19 days 8 hours 9 minutes">2008-05-16 08:26:33</Time>
<Status BatteryLevel="3" GPSLevel="3" TowerLevel="3" />
<GPS Lat="40.55015" Lon="-74.40904" Alt="108" Speed="0" Heading="63" Direction="-" />
</Record>
</Unit>
- <Unit ID="6179189235" Nick="SMO">
- <Record Cached="N" TowerLocation="N">
<Time Elapsed="3 minutes">2008-06-04 16:33:05</Time>
<Status BatteryLevel="0" GPSLevel="0" TowerLevel="2" />
<GPS Lat="35.27386" Lon="-94.39154" Alt="469" Speed="0" Heading="282" Direction="-" />
</Record>
</Unit>
</ATDataLatest>

I need to be able to retrieve that xml data from accutracking.com (I have the URL). I need to be able to do the following:
1. Read the data from the URL
2. strip out the UnitID, Lat, Long, ALT and Nick attributes.
3. write the arrtibute values into a db without using a save action.
4. loop to the next data record in the xml stream and do it all over again.

Is this something that can be achieved in list-x?

All help is appreciated.


-John<br>MCAD.Net, MCP, MCSD
jliptakUser is Offline
Basic Member
Basic Member
Posts:162

--
07 Jun 2008 09:57 AM  
------------------------------
A Note from the Bi4ce Support:
------------------------------
This is a fantastic demonstration of using ListX to bind to an XML feed and then parse that result with SQL. Great work on this!
------------------------------
Original Message:
------------------------------
Try the attached listx config.

Attachment: XmlSample.zip

robert_chumleyUser is Offline
Advanced Member
Advanced Member
Posts:592

--
09 Jun 2008 02:23 PM  
Hello jliptak,
Thank you for the example here, do you mind if we put this into the ListX/OWS hall of fame?
Thanks,


Robert Chumley<br>r2integrated (formally bi4ce)
jliptakUser is Offline
Basic Member
Basic Member
Posts:162

--
10 Jun 2008 10:10 AM  
Sure, happy to help out.


EncoderUser is Offline
New Member
New Member
Posts:37

--
16 Jun 2008 08:08 PM  
<div class='NTForums_Quote'>Posted By robert_chumley on 06/09/2008 9:23 AM

Hello jliptak,<br>Thank you for the example here, do you mind if we put this into the ListX/OWS hall of fame?<br>Thanks,</div>


This sample was fantastic, thanks so much for all the help.


-John<br>MCAD.Net, MCP, MCSD
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share