So I've been trying to get this up and running using the DataLinq Keys for xml, and I happen to be hitting a wall. Our xml is online (
-local server address-/WREXexportElections.pl), so we've always had that brought in through the RSS option. When I DataLinq an object, it only fills out the Column line (
http://imageshack.com/a/img197/2931/m2uw.png), which may be an issue. Not sure.
Anyway, the tag is `RACE/CANDIDATE_INFO/CANDIDATE/FIRST_NAME`
Then I create the DataLinq key - we'll call it RACE_ID, as every race has a unique ID from 0-633. We'll arbitrarily use 300 as an example. I set the value to 300 for the template.
I go back to my object, and change the RACE field to `RACE` and I get nada out of it. It comes up blank.
My first question is to make sure I understand it correctly. XPression is going to look for the RACE, where the RACE_ID equals the DataLinq key input. So if the RACE_ID=300, and that's race #1, when I put 300 into the DataLinq key, it's going to replace `` with 1.
My second question is if that's not correct, what's actually happening. And the follow up is how do I make that work for what I'm trying to do?
Some info that may be helpful:
The RACE_IDs are not sequential. They are grouped based on county/area the race is run. e.g., every race in county A gets RACE_IDs 100-199; county B gets 200-299, etc.
The output of the xml is alphabetical by race name, as this is also feeding our webpage and ticker system, that way county A races all display next to each other before county B, before federal, before state, etc...
This scrambles the RACE_IDs pretty badly, so I'm trying to find a way to easily find the race I'm looking for out of this list. I know the RACE_ID for every race is unique, so I figured I'd use that.
#XPression