Posted on 11/01/2015 10:24:05 AM PST by Pikachu_Dad
How do we use the XML file that the Secretary of State office provides? http://sos.la.gov10/24/2015 Election Results - Parish Results <table border="2"><tr style="font-weight: bold;"><td align="center">Parish</td> <td colspan="2" align="center">Scott A. Angelle (R)</td><td colspan="2" align="center">Beryl Billiot (N)</td><td colspan="2" align="center">"Jay" Dardenne (R)</td><td colspan="2" align="center">Cary Deaton (D)</td><td colspan="2" align="center">John Bel Edwards (D)</td><td colspan="2" align="center">Jeremy "JW" Odom (N)</td><td colspan="2" align="center">Eric Paul Orgeron (O)</td><td colspan="2" align="center">S L Simpson (D)</td><td colspan="2" align="center">David Vitter (R)</td><td align="center">Total Votes Cast</td><td align="center">Precincts Reporting</td></tr><tr><td nowrap="nowrap">Acadia</td><td align="right"> 5884</td><td align="right">34%</td><td align="right"> 67</td><td align="right">0%</td><td align="right"> 2176</td><td align="right">13%</td><td align="right"> 115</td><td align="right">1%</td><td align="right"> 5220</td><td align="right">30%</td><td align="right"> 78</td><td align="right">0%</td><td align="right"> 35</td><td align="right">0%</td><td align="right"> 78</td><td align="right">0%</td><td align="right"> 3729</td><td align="right">21%</td>&âª#âx0Dâ¬; <td align="right"> 17382</td><td align="left" nowrap="nowrap">55 of 55 precincts reporting</td></tr><tr><td nowrap="nowrap">Allen</td><td align="right"> 1463</td><td align="right">25%</td><td align="right"> 35</td><td align="right">1%</td><td align="right"> 958</td><td align="right">17%</td><td align="right"> 63</td><td align="right">1%</td><td align="right"> 1977</td><td align="right">34%</td><td align="right"> 29</td><td align="right">1%</td><td align="right"> 12</td><td align="right">0%</td><td align="right"> 41</td><td align="right">1%</td><td align="right"> 1212</td><td align="right">21%</td>
 <td align="right"> 5790</td><td align="left" nowrap="nowrap">29 of 29 precincts reporting</td></tr><tr><td etc. etc. etc.
I have an option to get RSS results or CSV results.
Now I can use the CSV results, but I was trying to figure out how to use the RSS results.
If I click on that option, I get an XML file downloaded to my computer.
However, I cannot find an easy way to open and view that file in an appropriate format.
It seems that I have to build some sort of HTML file to interpret the results.
What am I missing?
Parish | Scott A. Angelle (R) | Beryl Billiot (N) | "Jay" Dardenne (R) | Cary Deaton (D) | John Bel Edwards (D) | Jeremy "JW" Odom (N) | Eric Paul Orgeron (O) | S L Simpson (D) | David Vitter (R) | Total Votes Cast | Precincts Reporting | ||||||||||
Acadia | 5884 | 34% | 67 | 0% | 2176 | 13% | 115 | 1% | 5220 | 30% | 78 | 0% | 35 | 0% | 78 | 0% | 3729 | 21% | &ââ¬Âª#ââ¬Å½x0Dââ¬Â¬; | 17382 | 55 of 55 precincts reporting |
Allen | 1463 | 25% | 35 | 1% | 958 | 17% | 63 | 1% | 1977 | 34% | 29 | 1% | 12 | 0% | 41 | 1% | 1212 | 21% | 5790 | 29 of 29 precincts reporting | |
The part that you provided seems to have worked pretty well.
I’m not sure what it means, but it does seem to format to something.
It looks like you could just copy it and paste as HTML source in an HTML editor. SeaMonkey browser from Mozilla comes equipped with an HTML editor and is very useful.
Drop it into excel. Or better yet, open the CRV file in excel.
Okay, so HOW did you do that?
The only thing I did that's in the least bit subtle is that I edited out the open tag at the end of your posted string, the "
Sorry, the “open tag” is the final opening angle bracket followed by the letters “td” .
It seems that the “Body of Thread” box (in the FR “Posting new thread” screen) is not quite as tolerant of HTML as the “HTML okay” label on it would seem to indicate.
Here you go;
How do we use the XML file that the Secretary of State office provides? http://sos.la.gov10/24/2015 Election Results - Parish Results
Parish | Scott A. Angelle (R) | Beryl Billiot (N) | "Jay" Dardenne (R) | Cary Deaton (D) | John Bel Edwards (D) | Jeremy "JW" Odom (N) | Eric Paul Orgeron (O) | S L Simpson (D) | David Vitter (R) | Total Votes Cast | Precincts Reporting | ||||||||||
Acadia | 5884 | 34% | 67 | 0% | 2176 | 13% | 115 | 1% | 5220 | 30% | 78 | 0% | 35 | 0% | 78 | 0% | 3729 | 21% | &ââ¬Âª#ââ¬Å½x0Dââ¬Â¬; | 17382 | 55 of 55 precincts reporting |
Allen | 1463 | 25% | 35 | 1% | 958 | 17% | 63 | 1% | 1977 | 34% | 29 | 1% | 12 | 0% | 41 | 1% | 1212 | 21% | 5790 | 29 of 29 precincts reporting | |
Interesting.
A FR reply box has a size limit. :(
413 Request Entity Too Large nginx/1.2.4
It’s Aliens.
Are you logged on?
Import it into Excel or MSAccess and see if you have something better to work with.
If the format isn’t too complicated you can get some tables from it.
I do not have either excel or access. I have OpenOffice
What OS are you using?
What is the URL for the Document? I work with that stuff all the time.
If Open Office doesn’t have an XML import facility then you have some other options.
Download some free tool that can present it in a usable fashion.
Display it in your browser then copy / paste from your browser into some row/column oriented spreadsheet.
Bring it in as it is and do search / replace but that could get ugly.
XML Documents can get pretty darn complicated without the proper tools to parse it.
Those pesky Italians again?
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.