Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

How do we use an XML file?
Nov 1 2015 | Vanity

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>&#x0D; <td align="right"> 5790</td><td align="left" nowrap="nowrap">29 of 29 precincts reporting</td></tr><tr><td etc. etc. etc.


TOPICS: Chit/Chat; Computers/Internet; Weird Stuff
KEYWORDS: xml
Navigation: use the links below to view more comments.
first previous 1-2021-33 last
To: ImJustAnotherOkie

Apple OS X
File downloaded to PC

Just tried Serna. It had trouble


21 posted on 11/01/2015 12:13:50 PM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 19 | View Replies]

To: Pikachu_Dad

Use XML whenever 600 bytes can do the same job as 4 byes of binary data.


22 posted on 11/01/2015 2:00:14 PM PST by GingisK
[ Post Reply | Private Reply | To 1 | View Replies]

To: Pikachu_Dad

Odd. It worked for me when I posted it. Hmm. Oh well.


23 posted on 11/01/2015 3:17:51 PM PST by Bloody Sam Roberts (Democracy is not freedom. Democracy is simply majoritarianism. It is incompatible with real freedom.)
[ Post Reply | Private Reply | To 13 | View Replies]

To: GingisK

Roflol... And when you want it to be unusable by most people!


24 posted on 11/01/2015 3:18:39 PM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 22 | View Replies]

To: Bloody Sam Roberts

You did my excerpt. The entire file is massive!


25 posted on 11/01/2015 3:19:40 PM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 23 | View Replies]

To: Pikachu_Dad
...unusable by most people...

Binary reads work for everyone. Few machines in use today are big endian. Those who use big endian machines can swap bytes with even the big boys.

There never was a compatibility problem. Maybe just programmers who really couldn't program.

26 posted on 11/01/2015 5:38:19 PM PST by GingisK
[ Post Reply | Private Reply | To 24 | View Replies]

To: Pikachu_Dad

Then you’d have to use an HTML editor. There are lots of free ones available on the ‘net.


27 posted on 11/02/2015 5:38:37 AM PST by Bloody Sam Roberts (Democracy is not freedom. Democracy is simply majoritarianism. It is incompatible with real freedom.)
[ Post Reply | Private Reply | To 25 | View Replies]

To: Pikachu_Dad
A little more info...

Get an HTML editor, copy/paste your entire file into it then save it as <filename>.html or...rename your original file with a .html file extension. Then open either with your browser. No size limits there.

28 posted on 11/02/2015 5:41:36 AM PST by Bloody Sam Roberts (Democracy is not freedom. Democracy is simply majoritarianism. It is incompatible with real freedom.)
[ Post Reply | Private Reply | To 25 | View Replies]

To: Bloody Sam Roberts
Trying that. It looks a little better, but it still is not interpreting the tables? http://sos.la.gov10/24/2015 Election Results - Complete Results <table border="2" width="50%"><tr style="font-weight: bold;"><td align="center">3945 of 3945 precincts reporting</td><td align="right">%</td><td align="right">Votes</td></tr><tr><td>Scott A. Angelle (R)</td><td align="right">19%</td><td align="right"> 214982</td></tr><tr><td>Beryl Billiot (N)</td><td align="right">1%</td><td align="right"> 5694</td></tr><tr><td>"Jay" Dardenne (R)</td><td align="right">15%</td><td align="right"> 166656</td></tr><tr><td>Cary Deaton (D)</td><td align="right">1%</td><td align="right"> 11763</td></tr><tr><td>John Bel Edwards (D)</td><td align="right">40%</td><td align="right"> 444517</td></tr><tr><td>Jeremy "JW" Odom (N)</td><td align="right">0%</td><td align="right"> 4756</td></tr><tr><td>Eric Paul Orgeron (O)</td><td align="right">0%</td><td align="right"> 2248</td></tr><tr><td>S L Simpson (D)</td><td align="right">1%</td><td align="right"> 7420</td></tr><tr><td>David Vitter (R)</td><td align="right">23%</td><td align="right"> 256300</td></tr></table>
29 posted on 11/02/2015 9:27:59 AM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 28 | View Replies]

To: Pikachu_Dad

You could also try just opening the file as it is...[filename].xml in a browser like Firefox.


30 posted on 11/02/2015 11:05:21 AM PST by Bloody Sam Roberts (Democracy is not freedom. Democracy is simply majoritarianism. It is incompatible with real freedom.)
[ Post Reply | Private Reply | To 29 | View Replies]

To: Bloody Sam Roberts
Thanks, I will try that. Tis bloody puzzling. One of the few spots/programs that seems to reliably work so far reply box on Free Republic... :) As in:
3945 of 3945 precincts reporting % Votes
Scott A. Angelle (R) 19% 214982
Beryl Billiot (N) 1% 5694
"Jay" Dardenne (R) 15% 166656
Cary Deaton (D) 1% 11763
John Bel Edwards (D) 40% 444517
Jeremy "JW" Odom (N) 0% 4756
Eric Paul Orgeron (O) 0% 2248
S L Simpson (D) 1% 7420
David Vitter (R) 23% 256300

31 posted on 11/04/2015 4:18:37 AM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 30 | View Replies]

To: Pikachu_Dad
Test 2: http://sos.la.gov 10/24/2015 Election Results - Complete Results
3945 of 3945 precincts reporting % Votes
Scott A. Angelle (R) 19% 214982
Beryl Billiot (N) 1% 5694
"Jay" Dardenne (R) 15% 166656
Cary Deaton (D) 1% 11763
John Bel Edwards (D) 40% 444517
Jeremy "JW" Odom (N) 0% 4756
Eric Paul Orgeron (O) 0% 2248
S L Simpson (D) 1% 7420
David Vitter (R) 23% 256300
... ... ...
3945 of 3945 precincts reporting % Votes
Elbert Lee Guillory (R) 8% 85520
Melvin L. "Kip" Holden (D) 33% 361092
"Billy" Nungesser (R) 30% 324849
John Young (R) 29% 313364

32 posted on 11/04/2015 4:20:09 AM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 31 | View Replies]

To: Bloody Sam Roberts

Thanks. i finally got it to work.

If Instead of clicking on the RSS button, if I copy its link,

Then place that link into a newsreader, like feedly. Or inoreader,

Then I get the results in the proper format.

Each race is in a separate row,

Selecting that row, gives the results for that election.


33 posted on 11/07/2015 2:57:44 PM PST by Pikachu_Dad ("the media are selling you a line of soap")
[ Post Reply | Private Reply | To 30 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-33 last

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.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson