У меня есть SQL-запрос, который выводится как XML следующим образом:

<root>
<ELECTION>
    <title1>Carroll County Board Dist. 2</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5188</Winner>
    <WinningVotes>1445</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner1>Gary Imel</Winner1>
    <WinnerSelected>1</WinnerSelected>
    <WinnerPercent>27</WinnerPercent>
    <Loser>5187</Loser>
    <LosingVotes>1382</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser2>Ronald Preston</Loser2>
    <LoserPercent>26</LoserPercent>
    <LoserSelected>0</LoserSelected>
    <title1>Carroll County Board Dist. 2</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5189</Winner>
    <WinningVotes>1281</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner>CherylCole</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5190</Loser>
    <LosingVotes>1208</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser>AnnetteRahn</Loser>
    <LoserSelected>0</LoserSelected>
  </ELECTION>
  <ELECTION>
    <title1>Henry County Circuit Clerk</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5192</Winner>
    <WinningVotes>12893</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner1>Jackie Oberg</Winner1>
    <WinnerSelected>1</WinnerSelected>
    <WinnerPercent>56</WinnerPercent>
    <Loser>5191</Loser>
    <LosingVotes>10214</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser2>David Guzzardo</Loser2>
    <LoserPercent>44</LoserPercent>
    <LoserSelected>0</LoserSelected>
  </ELECTION>
  <ELECTION>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5205</Winner>
    <WinningVotes>6408</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner1>Karen Urick</Winner1>
    <WinnerSelected>1</WinnerSelected>
    <WinnerPercent>6</WinnerPercent>
    <Loser>5204</Loser>
    <LosingVotes>6390</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser2>Tim Wells</Loser2>
    <LoserPercent>6</LoserPercent>
    <LoserSelected>1</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5203</Winner>
    <WinningVotes>6362</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner>KathyNelson</Winner>
    <WinnerSelected>1</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5212</Loser>
    <LosingVotes>6343</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser>MarvinGradert</Loser>
    <LoserSelected>1</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5206</Winner>
    <WinningVotes>6281</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner>RickLivesay</Winner>
    <WinnerSelected>1</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5207</Loser>
    <LosingVotes>5618</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser>LorenRathjen</Loser>
    <LoserSelected>1</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5208</Winner>
    <WinningVotes>5548</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner>BillPreston</Winner>
    <WinnerSelected>1</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5210</Loser>
    <LosingVotes>5493</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser>JacobWaller</Loser>
    <LoserSelected>1</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5194</Winner>
    <WinningVotes>5479</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner>AnnDeSmith</Winner>
    <WinnerSelected>1</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5193</Loser>
    <LosingVotes>5269</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser>JoAnneHillman</Loser>
    <LoserSelected>1</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5211</Winner>
    <WinningVotes>5116</WinningVotes>
    <WinningParty>R</WinningParty>
    <Winner>CharlesLotridge</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5209</Loser>
    <LosingVotes>5103</LosingVotes>
    <LosingParty>R</LosingParty>
    <Loser>JonZahm</Loser>
    <LoserSelected>0</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5195</Winner>
    <WinningVotes>5034</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner>JosephSwan</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5196</Loser>
    <LosingVotes>4674</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser>BettyMurphy</Loser>
    <LoserSelected>0</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5201</Winner>
    <WinningVotes>4639</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner>KarenRussell</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5198</Loser>
    <LosingVotes>4611</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser>DennisSullivan</Loser>
    <LoserSelected>0</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5200</Winner>
    <WinningVotes>4559</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner>JimKing</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5197</Loser>
    <LosingVotes>4555</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser>IanMalmstrom</Loser>
    <LoserSelected>0</LoserSelected>
    <title1>Henry County Board Dist. 1</title1>
    <PrecintPercent>100</PrecintPercent>
    <Winner>5199</Winner>
    <WinningVotes>4323</WinningVotes>
    <WinningParty>D</WinningParty>
    <Winner>JimEccher</Winner>
    <WinnerSelected>0</WinnerSelected>
    <PrecintPercent>100</PrecintPercent>
    <Loser>5202</Loser>
    <LosingVotes>3734</LosingVotes>
    <LosingParty>D</LosingParty>
    <Loser>JohnSmith</Loser>
    <LoserSelected>0</LoserSelected>
  </ELECTION>
</root>

Я хотел бы, чтобы каждый от <title1> до </LoserSelected> был обернут <ELECTION> и </ELECTION> был правильно отформатирован как XML-документ. Некоторые из этих гонок имеют только 2 кандидата. В некоторых гонках есть 19+ кандидатов. К сожалению, мой тикер может отображать только 2 кандидата одновременно. Итак, все в <title1> между </LoserSelected> содержит данные, которые мне нужно проанализировать для двух кандидатов. Я собираюсь попробовать msxsl inputfile.xml translation.xsl -o outputfile.xml

Примером желаемого результата из вышеизложенного может быть:

        <root>
        <ELECTION>
            <title1>Carroll County Board Dist. 2</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5188</Winner>
            <WinningVotes>1445</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner1>Gary Imel</Winner1>
            <WinnerSelected>1</WinnerSelected>
            <WinnerPercent>27</WinnerPercent>
            <Loser>5187</Loser>
            <LosingVotes>1382</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser2>Ronald Preston</Loser2>
            <LoserPercent>26</LoserPercent>
            <LoserSelected>0</LoserSelected>
</ELECTION>
            <title1>Carroll County Board Dist. 2</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5189</Winner>
            <WinningVotes>1281</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner>CherylCole</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5190</Loser>
            <LosingVotes>1208</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser>AnnetteRahn</Loser>
            <LoserSelected>0</LoserSelected>
          </ELECTION>
          <ELECTION>
            <title1>Henry County Circuit Clerk</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5192</Winner>
            <WinningVotes>12893</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner1>Jackie Oberg</Winner1>
            <WinnerSelected>1</WinnerSelected>
            <WinnerPercent>56</WinnerPercent>
            <Loser>5191</Loser>
            <LosingVotes>10214</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser2>David Guzzardo</Loser2>
            <LoserPercent>44</LoserPercent>
            <LoserSelected>0</LoserSelected>
          </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5205</Winner>
            <WinningVotes>6408</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner1>Karen Urick</Winner1>
            <WinnerSelected>1</WinnerSelected>
            <WinnerPercent>6</WinnerPercent>
            <Loser>5204</Loser>
            <LosingVotes>6390</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser2>Tim Wells</Loser2>
            <LoserPercent>6</LoserPercent>
            <LoserSelected>1</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5203</Winner>
            <WinningVotes>6362</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner>KathyNelson</Winner>
            <WinnerSelected>1</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5212</Loser>
            <LosingVotes>6343</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser>MarvinGradert</Loser>
            <LoserSelected>1</LoserSelected>
</ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5206</Winner>
            <WinningVotes>6281</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner>RickLivesay</Winner>
            <WinnerSelected>1</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5207</Loser>
            <LosingVotes>5618</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser>LorenRathjen</Loser>
            <LoserSelected>1</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5208</Winner>
            <WinningVotes>5548</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner>BillPreston</Winner>
            <WinnerSelected>1</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5210</Loser>
            <LosingVotes>5493</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser>JacobWaller</Loser>
            <LoserSelected>1</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5194</Winner>
            <WinningVotes>5479</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner>AnnDeSmith</Winner>
            <WinnerSelected>1</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5193</Loser>
            <LosingVotes>5269</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser>JoAnneHillman</Loser>
            <LoserSelected>1</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5211</Winner>
            <WinningVotes>5116</WinningVotes>
            <WinningParty>R</WinningParty>
            <Winner>CharlesLotridge</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5209</Loser>
            <LosingVotes>5103</LosingVotes>
            <LosingParty>R</LosingParty>
            <Loser>JonZahm</Loser>
            <LoserSelected>0</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5195</Winner>
            <WinningVotes>5034</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner>JosephSwan</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5196</Loser>
            <LosingVotes>4674</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser>BettyMurphy</Loser>
            <LoserSelected>0</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5201</Winner>
            <WinningVotes>4639</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner>KarenRussell</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5198</Loser>
            <LosingVotes>4611</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser>DennisSullivan</Loser>
            <LoserSelected>0</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5200</Winner>
            <WinningVotes>4559</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner>JimKing</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5197</Loser>
            <LosingVotes>4555</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser>IanMalmstrom</Loser>
            <LoserSelected>0</LoserSelected>
    </ELECTION>
          <ELECTION>
            <title1>Henry County Board Dist. 1</title1>
            <PrecintPercent>100</PrecintPercent>
            <Winner>5199</Winner>
            <WinningVotes>4323</WinningVotes>
            <WinningParty>D</WinningParty>
            <Winner>JimEccher</Winner>
            <WinnerSelected>0</WinnerSelected>
            <PrecintPercent>100</PrecintPercent>
            <Loser>5202</Loser>
            <LosingVotes>3734</LosingVotes>
            <LosingParty>D</LosingParty>
            <Loser>JohnSmith</Loser>
            <LoserSelected>0</LoserSelected>
          </ELECTION>
        </root>

Как видите, в округе Генри МНОГИЕ кандидатов, но я могу написать только 2 кандидата за раз, используя свой тикер. Если бы у меня была каждая группа из двух кандидатов, заключенных в теги <ELECTION> И </ELECTION>, я мог бы правильно проанализировать это.

На данный момент у меня есть эти пути как

FOR XML PATH ('ELECTION'), root('root')

Так что он уже генерирует <ELECTION> и </ELECTION>.

Может ли кто-нибудь помочь или предложить какие-либо предложения по правильному форматированию XML?

Спасибо

Кто-нибудь может помочь?

0
user3242661 25 Фев 2014 в 05:23

1 ответ

Лучший ответ

Я считаю, что эта таблица стилей решает вашу проблему

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output indent="yes"/>
    <xsl:strip-space elements="*"/>

    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>


    <xsl:template match="ELECTION">
        <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="root">
        <xsl:copy>
            <xsl:for-each select="descendant::title1">
                <xsl:variable name="current_pos" select="position()"/>
                <ELECTION>
                    <xsl:copy-of select="."/>
                    <xsl:apply-templates select="following::*[not(descendant-or-self::title1)][not(preceding::title1[position() &gt; $current_pos])]"></xsl:apply-templates>
                </ELECTION>
            </xsl:for-each>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>

При применении к вашему входному XML он производит:

<root>
   <ELECTION>
      <title1>Carroll County Board Dist. 2</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5188</Winner>
      <WinningVotes>1445</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner1>Gary Imel</Winner1>
      <WinnerSelected>1</WinnerSelected>
      <WinnerPercent>27</WinnerPercent>
      <Loser>5187</Loser>
      <LosingVotes>1382</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser2>Ronald Preston</Loser2>
      <LoserPercent>26</LoserPercent>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Carroll County Board Dist. 2</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5189</Winner>
      <WinningVotes>1281</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner>CherylCole</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5190</Loser>
      <LosingVotes>1208</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser>AnnetteRahn</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Circuit Clerk</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5192</Winner>
      <WinningVotes>12893</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner1>Jackie Oberg</Winner1>
      <WinnerSelected>1</WinnerSelected>
      <WinnerPercent>56</WinnerPercent>
      <Loser>5191</Loser>
      <LosingVotes>10214</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser2>David Guzzardo</Loser2>
      <LoserPercent>44</LoserPercent>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5205</Winner>
      <WinningVotes>6408</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner1>Karen Urick</Winner1>
      <WinnerSelected>1</WinnerSelected>
      <WinnerPercent>6</WinnerPercent>
      <Loser>5204</Loser>
      <LosingVotes>6390</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser2>Tim Wells</Loser2>
      <LoserPercent>6</LoserPercent>
      <LoserSelected>1</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5203</Winner>
      <WinningVotes>6362</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner>KathyNelson</Winner>
      <WinnerSelected>1</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5212</Loser>
      <LosingVotes>6343</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser>MarvinGradert</Loser>
      <LoserSelected>1</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5206</Winner>
      <WinningVotes>6281</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner>RickLivesay</Winner>
      <WinnerSelected>1</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5207</Loser>
      <LosingVotes>5618</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser>LorenRathjen</Loser>
      <LoserSelected>1</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5208</Winner>
      <WinningVotes>5548</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner>BillPreston</Winner>
      <WinnerSelected>1</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5210</Loser>
      <LosingVotes>5493</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser>JacobWaller</Loser>
      <LoserSelected>1</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5194</Winner>
      <WinningVotes>5479</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner>AnnDeSmith</Winner>
      <WinnerSelected>1</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5193</Loser>
      <LosingVotes>5269</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser>JoAnneHillman</Loser>
      <LoserSelected>1</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5211</Winner>
      <WinningVotes>5116</WinningVotes>
      <WinningParty>R</WinningParty>
      <Winner>CharlesLotridge</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5209</Loser>
      <LosingVotes>5103</LosingVotes>
      <LosingParty>R</LosingParty>
      <Loser>JonZahm</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5195</Winner>
      <WinningVotes>5034</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner>JosephSwan</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5196</Loser>
      <LosingVotes>4674</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser>BettyMurphy</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5201</Winner>
      <WinningVotes>4639</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner>KarenRussell</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5198</Loser>
      <LosingVotes>4611</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser>DennisSullivan</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5200</Winner>
      <WinningVotes>4559</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner>JimKing</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5197</Loser>
      <LosingVotes>4555</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser>IanMalmstrom</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
   <ELECTION>
      <title1>Henry County Board Dist. 1</title1>
      <PrecintPercent>100</PrecintPercent>
      <Winner>5199</Winner>
      <WinningVotes>4323</WinningVotes>
      <WinningParty>D</WinningParty>
      <Winner>JimEccher</Winner>
      <WinnerSelected>0</WinnerSelected>
      <PrecintPercent>100</PrecintPercent>
      <Loser>5202</Loser>
      <LosingVotes>3734</LosingVotes>
      <LosingParty>D</LosingParty>
      <Loser>JohnSmith</Loser>
      <LoserSelected>0</LoserSelected>
   </ELECTION>
</root>
2
Joel M. Lamsen 25 Фев 2014 в 11:53
Чувак, ему требуется некоторое время, чтобы проанализировать настоящий ВЕСЬ файл .... но он работает !! Большое Вам спасибо!!!!
 – 
user3242661
25 Фев 2014 в 19:56