Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created July 16, 2010 15:44
Show Gist options
  • Save seanhess/478506 to your computer and use it in GitHub Desktop.
Save seanhess/478506 to your computer and use it in GitHub Desktop.
headendExample: """
<headend headendId="AK50401">
<name>GCI Cable</name>
<mso msoId="14730">GCI</mso>
<marketIds>
<marketId type="DMA">743</marketId>
</marketIds>
<postalCodes>
<postalCode>99501</postalCode>
<postalCode>99502</postalCode>
<postalCode>99503</postalCode>
<postalCode>99504</postalCode>
<postalCode>99506</postalCode>
<postalCode>99507</postalCode>
<postalCode>99508</postalCode>
<postalCode>99513</postalCode>
<postalCode>99515</postalCode>
<postalCode>99516</postalCode>
<postalCode>99517</postalCode>
<postalCode>99518</postalCode>
<postalCode>99523</postalCode>
<postalCode>99524</postalCode>
<postalCode>99599</postalCode>
<postalCode>99567</postalCode>
<postalCode>99577</postalCode>
<postalCode>99701</postalCode>
<postalCode>99705</postalCode>
<postalCode>99505</postalCode>
<postalCode>99645</postalCode>
<postalCode>99654</postalCode>
<postalCode>99687</postalCode>
</postalCodes>
<location>Anchorage</location>
<lineup device="X">
<station prgSvcId="16575">
<chan tier="3">429</chan>
</station>
<station prgSvcId="18284">
<chan effDate="2000-09-01" tier="1">104</chan>
</station>
<station prgSvcId="16617">
<chan effDate="2000-09-01" tier="1">105</chan>
</station>
<station prgSvcId="16615">
<chan effDate="2000-09-01" tier="1">106</chan>
</station>
<station prgSvcId="17131">
<chan effDate="2001-02-02" tier="3">512</chan>
</station>
<station prgSvcId="16444">
<chan effDate="2001-02-12" tier="3">422</chan>
</station>
<station prgSvcId="16584">
<chan effDate="2001-02-12" tier="3">423</chan>
</station>
<station prgSvcId="17125">
<chan effDate="2001-03-07" tier="3">506</chan>
</station>
<station prgSvcId="17126">
<chan effDate="2001-05-15" tier="3">507</chan>
</station>
<station prgSvcId="17132">
<chan effDate="2001-05-15" tier="3">508</chan>
</station>
<station prgSvcId="17127">
<chan effDate="2001-05-15" tier="3">509</chan>
</station>
<station prgSvcId="17124">
<chan effDate="2001-05-15" tier="3">510</chan>
</station>
<station prgSvcId="17130">
<chan effDate="2001-05-15" tier="3">511</chan>
</station>
<station prgSvcId="26077">
<chan effDate="2001-06-21" tier="1">301</chan>
</station>
<station prgSvcId="26078">
<chan effDate="2001-06-21" tier="1">302</chan>
</station>
<station prgSvcId="26079">
<chan effDate="2001-06-21" tier="1">303</chan>
</station>
<station prgSvcId="18432">
<chan effDate="2001-06-21" tier="3">406</chan>
</station>
<station prgSvcId="24575">
<chan effDate="2001-06-21" tier="3">407</chan>
</station>
<station prgSvcId="25621">
<chan effDate="2001-06-21" tier="3">415</chan>
</station>
<station prgSvcId="25623">
<chan effDate="2001-06-21" tier="3">416</chan>
</station>
<station prgSvcId="25620">
<chan effDate="2001-06-21" tier="3">417</chan>
</station>
<station prgSvcId="12741">
<chan effDate="2001-06-21" tier="3">501</chan>
</station>
<station prgSvcId="19651">
<chan effDate="2001-06-21" tier="3">505</chan>
</station>
<station prgSvcId="10408">
<chan effDate="2002-07-08" tier="1">006</chan>
</station>
<station prgSvcId="17098">
<chan effDate="2002-07-08" tier="1">008</chan>
</station>
<station prgSvcId="22128">
<chan effDate="2002-07-08" tier="1">014</chan>
</station>
<station prgSvcId="18164">
<chan effDate="2002-07-08" tier="3">427</chan>
</station>
<station prgSvcId="20625">
<chan effDate="2002-07-08" tier="3">428</chan>
</station>
<station prgSvcId="10242">
<chan effDate="2002-07-15" tier="3">402</chan>
</station>
<station prgSvcId="11117">
<chan effDate="2002-07-15" tier="3">421</chan>
</station>
<station prgSvcId="25622">
<chan effDate="2002-07-15" tier="3">418</chan>
</station>
<station prgSvcId="22223">
<chan effDate="2003-02-14" tier="1">010</chan>
</station>
<station prgSvcId="19211">
<chan effDate="2003-12-30" tier="2">107</chan>
</station>
<station prgSvcId="30420">
<chan effDate="2003-12-30" tier="2">109</chan>
</station>
<station prgSvcId="25271">
<chan effDate="2003-12-30" tier="3">430</chan>
</station>
<station prgSvcId="25273">
<chan effDate="2003-12-30" tier="3">431</chan>
</station>
<station prgSvcId="25275">
<chan effDate="2003-12-30" tier="3">432</chan>
</station>
<station prgSvcId="17129">
<chan effDate="2003-12-30" tier="3">502</chan>
</station>
<station prgSvcId="17123">
<chan effDate="2003-12-30" tier="3">503</chan>
</station>
<station prgSvcId="19650">
<chan effDate="2003-12-30" tier="3">504</chan>
</station>
<station prgSvcId="22532">
<chan effDate="2003-12-30" tier="3">601</chan>
</station>
<station prgSvcId="19309">
<chan effDate="2004-07-07" tier="5">813</chan>
</station>
<station prgSvcId="14968">
<chan effDate="2004-10-13" tier="3">520</chan>
</station>
<station prgSvcId="34902">
<chan effDate="2004-10-12" tier="3">513</chan>
</station>
<station prgSvcId="16618">
<chan effDate="2004-10-26" tier="1">101</chan>
</station>
<station prgSvcId="16616">
<chan effDate="2004-10-26" tier="1">103</chan>
</station>
<station prgSvcId="18332">
<chan effDate="2004-10-26" tier="1">111</chan>
</station>
<station prgSvcId="16485">
<chan effDate="2004-10-26" tier="1">112</chan>
</station>
<station prgSvcId="30418">
<chan effDate="2004-10-26" tier="1">116</chan>
</station>
<station prgSvcId="22561">
<chan effDate="2004-10-26" tier="1">117</chan>
</station>
<station prgSvcId="16834">
<chan effDate="2004-10-26" tier="1">203</chan>
</station>
<station prgSvcId="18822">
<chan effDate="2004-10-26" tier="1">204</chan>
</station>
<station prgSvcId="17021">
<chan effDate="2004-10-26" tier="1">205</chan>
</station>
<station prgSvcId="18544">
<chan effDate="2004-10-26" tier="1">206</chan>
</station>
<station prgSvcId="16062">
<chan effDate="2004-10-26" tier="1">207</chan>
</station>
<station prgSvcId="14899">
<chan effDate="2004-10-26" tier="1">304</chan>
</station>
<station prgSvcId="33395">
<chan effDate="2004-10-26" tier="1">305</chan>
</station>
<station prgSvcId="33178">
<chan effDate="2004-10-26" tier="1">307</chan>
</station>
<station prgSvcId="34763">
<chan effDate="2004-11-09" tier="1">625</chan>
</station>
<station prgSvcId="32645">
<chan effDate="2004-11-09" tier="1">626</chan>
</station>
<station prgSvcId="33668">
<chan effDate="2004-11-09" tier="1">628</chan>
</station>
<station prgSvcId="28506">
<chan effDate="2004-11-09" tier="1">629</chan>
</station>
<station prgSvcId="14782">
<chan effDate="2004-12-01" tier="1">900</chan>
</station>
<station prgSvcId="19566">
<chan effDate="2005-08-23" tier="3">603</chan>
</station>
<station prgSvcId="35975">
<chan effDate="2005-08-23" tier="3">604</chan>
</station>
<station prgSvcId="14767">
<chan effDate="2005-09-28" tier="1">123</chan>
</station>
<station prgSvcId="21855">
<chan effDate="2005-09-28" tier="1">124</chan>
</station>
<station prgSvcId="10002">
<chan effDate="2005-09-28" tier="1">125</chan>
</station>
<station prgSvcId="10188">
<chan effDate="2005-09-28" tier="1">127</chan>
</station>
<station prgSvcId="21869">
<chan effDate="2005-09-28" tier="1">128</chan>
</station>
<station prgSvcId="11066">
<chan effDate="2005-09-28" tier="1">129</chan>
</station>
<station prgSvcId="10146">
<chan effDate="2005-09-28" tier="1">208</chan>
</station>
<station prgSvcId="33930">
<chan effDate="2005-09-28" tier="1">306</chan>
</station>
<station prgSvcId="42642">
<chan effDate="2005-09-13" tier="1">651</chan>
</station>
<station prgSvcId="47800">
<chan effDate="2005-09-16" tier="1">652</chan>
</station>
<station prgSvcId="48022">
<chan effDate="2005-09-28" tier="1">657</chan>
</station>
<station prgSvcId="46432">
<chan effDate="2005-11-13" tier="1">102</chan>
</station>
<station prgSvcId="29328">
<chan effDate="2005-12-05" tier="1">121</chan>
</station>
<station prgSvcId="10183">
<chan effDate="2005-12-05" tier="1">122</chan>
</station>
<station prgSvcId="16361">
<chan effDate="2006-01-06" tier="1">115</chan>
</station>
<station prgSvcId="48833">
<chan effDate="2006-01-25" tier="1">120</chan>
</station>
<station prgSvcId="23309">
<chan effDate="2006-09-28" tier="1">001</chan>
</station>
<station prgSvcId="52675">
<chan effDate="2006-09-28" tier="1">003</chan>
</station>
<station prgSvcId="21912">
<chan effDate="2006-09-28" tier="1">012</chan>
</station>
<station prgSvcId="10161">
<chan effDate="2006-09-28" tier="1">016</chan>
</station>
<station prgSvcId="10162">
<chan effDate="2006-09-28" tier="1">017</chan>
</station>
<station prgSvcId="10296">
<chan effDate="2006-09-28" tier="1">019</chan>
</station>
<station prgSvcId="11069">
<chan effDate="2006-09-28" tier="2">020</chan>
</station>
<station prgSvcId="10269">
<chan effDate="2006-09-28" tier="2">021</chan>
</station>
<station prgSvcId="14948">
<chan effDate="2006-09-28" tier="2">022</chan>
</station>
<station prgSvcId="10919">
<chan effDate="2006-09-28" tier="2">023</chan>
</station>
<station prgSvcId="29677">
<chan effDate="2006-09-28" tier="2">025</chan>
</station>
<station prgSvcId="35371">
<chan effDate="2006-09-28" tier="2">026</chan>
</station>
<station prgSvcId="17561">
<chan effDate="2006-09-28" tier="2">027</chan>
</station>
<station prgSvcId="11208">
<chan effDate="2006-09-28" tier="2">028</chan>
</station>
<station prgSvcId="34240">
<chan effDate="2006-09-28" tier="2">030</chan>
</station>
<station prgSvcId="18510">
<chan effDate="2006-09-28" tier="2">031</chan>
</station>
<station prgSvcId="15451">
<chan effDate="2006-09-28" tier="2">033</chan>
</station>
<station prgSvcId="10179">
<chan effDate="2006-09-28" tier="2">034</chan>
</station>
<station prgSvcId="12444">
<chan effDate="2006-09-28" tier="2">035</chan>
</station>
<station prgSvcId="11062">
<chan effDate="2006-09-28" tier="2">036</chan>
</station>
<station prgSvcId="34710">
<chan effDate="2006-09-28" tier="2">037</chan>
</station>
<station prgSvcId="19002">
<chan effDate="2006-09-28" tier="2">038</chan>
</station>
<station prgSvcId="15952">
<chan effDate="2006-09-28" tier="2">039</chan>
</station>
<station prgSvcId="18480">
<chan effDate="2006-09-28" tier="2">042</chan>
</station>
<station prgSvcId="31556">
<chan effDate="2006-09-28" tier="2">043</chan>
</station>
<station prgSvcId="26046">
<chan effDate="2006-09-28" tier="2">045</chan>
</station>
<station prgSvcId="18151">
<chan effDate="2006-09-28" tier="2">046</chan>
</station>
<station prgSvcId="50001">
<chan effDate="2006-09-28" tier="2">047</chan>
</station>
<station prgSvcId="18793">
<chan effDate="2006-09-28" tier="2">048</chan>
</station>
<station prgSvcId="12510">
<chan effDate="2006-09-28" tier="2">049</chan>
</station>
<station prgSvcId="11007">
<chan effDate="2006-09-28" tier="2">050</chan>
</station>
<station prgSvcId="12499">
<chan effDate="2006-09-28" tier="2">051</chan>
</station>
<station prgSvcId="24959">
<chan effDate="2006-09-28" tier="2">054</chan>
</station>
<station prgSvcId="19543">
<chan effDate="2006-09-28" tier="2">055</chan>
</station>
<station prgSvcId="12500">
<chan effDate="2006-09-28" tier="2">056</chan>
</station>
<station prgSvcId="50000">
<chan effDate="2006-09-28" tier="2">057</chan>
</station>
<station prgSvcId="21762">
<chan effDate="2006-09-28" tier="2">058</chan>
</station>
<station prgSvcId="21760">
<chan effDate="2006-09-28" tier="2">059</chan>
</station>
<station prgSvcId="34215">
<chan effDate="2006-09-28" tier="2">060</chan>
</station>
<station prgSvcId="33648">
<chan effDate="2006-09-28" tier="2">061</chan>
</station>
<station prgSvcId="10139">
<chan effDate="2006-09-28" tier="2">065</chan>
</station>
<station prgSvcId="16300">
<chan effDate="2006-09-28" tier="2">066</chan>
</station>
<station prgSvcId="16374">
<chan effDate="2006-09-28" tier="2">067</chan>
</station>
<station prgSvcId="10142">
<chan effDate="2006-09-28" tier="2">068</chan>
</station>
<station prgSvcId="10145">
<chan effDate="2006-09-28" tier="2">069</chan>
</station>
<station prgSvcId="44626">
<chan effDate="2006-09-28" tier="2">070</chan>
</station>
<station prgSvcId="11187">
<chan effDate="2006-09-28" tier="2">071</chan>
</station>
<station prgSvcId="27203">
<chan effDate="2006-09-28" tier="2">075</chan>
</station>
<station prgSvcId="10987">
<chan effDate="2006-09-28" tier="2">076</chan>
</station>
<station prgSvcId="16376">
<chan effDate="2006-09-28" tier="2">077</chan>
</station>
<station prgSvcId="21744">
<chan effDate="2006-09-28" tier="2">080</chan>
</station>
<station prgSvcId="10150">
<chan effDate="2006-09-28" tier="2">081</chan>
</station>
<station prgSvcId="24533">
<chan effDate="2006-09-28" tier="2">082</chan>
</station>
<station prgSvcId="24483">
<chan effDate="2006-09-28" tier="2">084</chan>
</station>
<station prgSvcId="31555">
<chan effDate="2006-09-28" tier="2">083</chan>
</station>
<station prgSvcId="14762">
<chan effDate="2006-09-28" tier="2">085</chan>
</station>
<station prgSvcId="44895">
<chan effDate="2006-09-28" tier="1">110</chan>
</station>
<station prgSvcId="14755">
<chan effDate="2006-09-28" tier="1">130</chan>
</station>
<station prgSvcId="21883">
<chan effDate="2006-09-28" tier="1">210</chan>
</station>
<station prgSvcId="45169">
<chan effDate="2006-09-28" tier="1">308</chan>
</station>
<station prgSvcId="21345">
<chan effDate="2006-09-28" tier="1">309</chan>
</station>
<station prgSvcId="34108">
<chan effDate="2006-09-28" tier="1">521</chan>
</station>
<station prgSvcId="45399">
<chan effDate="2006-09-28" tier="1">630</chan>
</station>
<station prgSvcId="14753">
<chan effDate="2006-10-02" tier="2">032</chan>
</station>
<station prgSvcId="37086">
<chan effDate="2006-10-11" tier="1">656</chan>
</station>
<station prgSvcId="54292">
<chan effDate="2007-05-03" tier="2">024</chan>
</station>
<station prgSvcId="16011">
<chan effDate="2007-06-01" tier="2">041</chan>
</station>
<station prgSvcId="14988">
<chan effDate="2007-06-01" tier="1">131</chan>
</station>
<station prgSvcId="49438">
<chan effDate="2007-06-01" tier="1">631</chan>
</station>
<station prgSvcId="51505">
<chan effDate="2007-06-01" tier="1">658</chan>
</station>
<station prgSvcId="17983">
<chan effDate="2007-09-25" tier="2">086</chan>
</station>
<station prgSvcId="47540">
<chan effDate="2007-12-14" tier="1">133</chan>
</station>
<station prgSvcId="32258">
<chan effDate="2007-12-14" tier="1">310</chan>
</station>
<station prgSvcId="57581">
<chan effDate="2007-12-14" tier="1">606</chan>
</station>
<station prgSvcId="57569">
<chan effDate="2007-12-14" tier="1">607</chan>
</station>
<station prgSvcId="57573">
<chan effDate="2007-12-14" tier="1">608</chan>
</station>
<station prgSvcId="31046">
<chan effDate="2007-12-14" tier="1">632</chan>
</station>
<station prgSvcId="57708">
<chan effDate="2007-12-14" tier="1">634</chan>
</station>
<station prgSvcId="59036">
<chan effDate="2008-01-02" tier="2">108</chan>
</station>
<station prgSvcId="48999">
<chan effDate="2008-01-18" tier="1">209</chan>
</station>
<station prgSvcId="14776">
<chan effDate="2008-02-20" tier="2">040</chan>
</station>
<station prgSvcId="59337">
<chan effDate="2008-03-03" tier="2">637</chan>
</station>
<station prgSvcId="59444">
<chan effDate="2008-03-03" tier="2">638</chan>
</station>
<station prgSvcId="59296">
<chan effDate="2008-03-03" tier="2">639</chan>
</station>
<station prgSvcId="59208">
<chan effDate="2008-03-03" tier="2">640</chan>
</station>
<station prgSvcId="51529">
<chan effDate="2008-03-05" tier="2">633</chan>
</station>
<station prgSvcId="34949">
<chan effDate="2008-04-24" tier="3">602</chan>
</station>
<station prgSvcId="45507">
<chan effDate="2008-09-17" tier="1">627</chan>
</station>
<station prgSvcId="58988">
<chan effDate="2008-09-17" tier="1">635</chan>
</station>
<station prgSvcId="46737">
<chan effDate="2008-09-17" tier="1">659</chan>
</station>
<station prgSvcId="58508">
<chan effDate="2008-09-17" tier="1">661</chan>
</station>
<station prgSvcId="61036">
<chan effDate="2008-09-17" tier="1">662</chan>
</station>
<station prgSvcId="45438">
<chan effDate="2008-09-17" tier="1">671</chan>
</station>
<station prgSvcId="59303">
<chan effDate="2008-09-17" tier="1">672</chan>
</station>
<station prgSvcId="50747">
<chan effDate="2008-09-17" tier="1">673</chan>
</station>
<station prgSvcId="49788">
<chan effDate="2008-09-17" tier="1">674</chan>
</station>
<station prgSvcId="58802">
<chan effDate="2008-09-23" tier="1">015</chan>
</station>
<station prgSvcId="43377">
<chan effDate="2008-09-23" tier="1">100</chan>
</station>
<station prgSvcId="52199">
<chan effDate="2008-09-23" tier="1">132</chan>
</station>
<station prgSvcId="45654">
<chan effDate="2008-09-23" tier="1">134</chan>
</station>
<station prgSvcId="36225">
<chan effDate="2008-09-23" tier="3">609</chan>
</station>
<station prgSvcId="59355">
<chan effDate="2008-09-23" tier="3">610</chan>
</station>
<station prgSvcId="59362">
<chan effDate="2008-09-23" tier="3">611</chan>
</station>
<station prgSvcId="59366">
<chan effDate="2008-09-23" tier="3">612</chan>
</station>
<station prgSvcId="59961">
<chan effDate="2008-09-23" tier="3">615</chan>
</station>
<station prgSvcId="60953">
<chan effDate="2008-09-23" tier="3">616</chan>
</station>
<station prgSvcId="49719">
<chan effDate="2008-10-08" tier="1">009</chan>
</station>
<station prgSvcId="56811">
<chan effDate="2008-11-14" tier="1">654</chan>
</station>
<station prgSvcId="58530">
<chan effDate="2008-11-21" tier="1">641</chan>
</station>
<station prgSvcId="58532">
<chan effDate="2008-11-21" tier="1">642</chan>
</station>
<station prgSvcId="55887">
<chan effDate="2008-11-21" tier="2">676</chan>
</station>
<station prgSvcId="59684">
<chan effDate="2008-11-21" tier="2">680</chan>
</station>
<station prgSvcId="60006">
<chan effDate="2008-11-21" tier="2">681</chan>
</station>
<station prgSvcId="60179">
<chan effDate="2008-11-21" tier="2">682</chan>
</station>
<station prgSvcId="59116">
<chan effDate="2008-11-21" tier="2">683</chan>
</station>
<station prgSvcId="32046">
<chan effDate="2008-12-22" tier="1">777</chan>
</station>
<station prgSvcId="14909">
<chan effDate="2009-03-30" tier="1">201</chan>
</station>
<station prgSvcId="19313">
<chan effDate="2009-04-15" tier="5">801</chan>
</station>
<station prgSvcId="19332">
<chan effDate="2009-04-15" tier="5">804</chan>
</station>
<station prgSvcId="24378">
<chan effDate="2009-04-15" tier="5">806</chan>
</station>
<station prgSvcId="19346">
<chan effDate="2009-04-15" tier="5">802</chan>
</station>
<station prgSvcId="26480">
<chan effDate="2009-04-15" tier="5">803</chan>
</station>
<station prgSvcId="26230">
<chan effDate="2009-04-15" tier="5">805</chan>
</station>
<station prgSvcId="19339">
<chan effDate="2009-04-15" tier="5">807</chan>
</station>
<station prgSvcId="26232">
<chan effDate="2009-04-15" tier="5">808</chan>
</station>
<station prgSvcId="19344">
<chan effDate="2009-04-15" tier="5">809</chan>
</station>
<station prgSvcId="26250">
<chan effDate="2009-04-15" tier="5">810</chan>
</station>
<station prgSvcId="26229">
<chan effDate="2009-04-15" tier="5">811</chan>
</station>
<station prgSvcId="26221">
<chan effDate="2009-04-15" tier="5">812</chan>
</station>
<station prgSvcId="31030">
<chan effDate="2009-04-15" tier="5">814</chan>
</station>
<station prgSvcId="19310">
<chan effDate="2009-04-15" tier="5">815</chan>
</station>
<station prgSvcId="19142">
<chan effDate="2009-04-15" tier="5">816</chan>
</station>
<station prgSvcId="31029">
<chan effDate="2009-04-15" tier="5">817</chan>
</station>
<station prgSvcId="19311">
<chan effDate="2009-04-15" tier="5">818</chan>
</station>
<station prgSvcId="19315">
<chan effDate="2009-04-15" tier="5">819</chan>
</station>
<station prgSvcId="19314">
<chan effDate="2009-04-15" tier="5">820</chan>
</station>
<station prgSvcId="43335">
<chan effDate="2009-04-15" tier="5">821</chan>
</station>
<station prgSvcId="19328">
<chan effDate="2009-04-15" tier="5">822</chan>
</station>
<station prgSvcId="19327">
<chan effDate="2009-04-15" tier="5">823</chan>
</station>
<station prgSvcId="19330">
<chan effDate="2009-04-15" tier="5">824</chan>
</station>
<station prgSvcId="19329">
<chan effDate="2009-04-15" tier="5">825</chan>
</station>
<station prgSvcId="26228">
<chan effDate="2009-04-15" tier="5">826</chan>
</station>
<station prgSvcId="19336">
<chan effDate="2009-04-15" tier="5">827</chan>
</station>
<station prgSvcId="24405">
<chan effDate="2009-04-15" tier="5">828</chan>
</station>
<station prgSvcId="19326">
<chan effDate="2009-04-15" tier="5">829</chan>
</station>
<station prgSvcId="44059">
<chan effDate="2009-04-15" tier="5">830</chan>
</station>
<station prgSvcId="19325">
<chan effDate="2009-04-15" tier="5">831</chan>
</station>
<station prgSvcId="26248">
<chan effDate="2009-04-15" tier="5">832</chan>
</station>
<station prgSvcId="19342">
<chan effDate="2009-04-15" tier="5">833</chan>
</station>
<station prgSvcId="19319">
<chan effDate="2009-04-15" tier="5">834</chan>
</station>
<station prgSvcId="19324">
<chan effDate="2009-04-15" tier="5">835</chan>
</station>
<station prgSvcId="24380">
<chan effDate="2009-04-15" tier="5">836</chan>
</station>
<station prgSvcId="24382">
<chan effDate="2009-04-15" tier="5">837</chan>
</station>
<station prgSvcId="19320">
<chan effDate="2009-04-15" tier="5">838</chan>
</station>
<station prgSvcId="19335">
<chan effDate="2009-04-15" tier="5">839</chan>
</station>
<station prgSvcId="19316">
<chan effDate="2009-04-15" tier="5">840</chan>
</station>
<station prgSvcId="19317">
<chan effDate="2009-04-15" tier="5">841</chan>
</station>
<station prgSvcId="19358">
<chan effDate="2009-04-15" tier="5">842</chan>
</station>
<station prgSvcId="31028">
<chan effDate="2009-04-15" tier="5">843</chan>
</station>
<station prgSvcId="19362">
<chan effDate="2009-04-15" tier="5">844</chan>
</station>
<station prgSvcId="19357">
<chan effDate="2009-04-15" tier="5">845</chan>
</station>
<station prgSvcId="22231">
<chan effDate="2009-04-29" tier="1">018</chan>
</station>
<station prgSvcId="17927">
<chan effDate="2009-04-29" tier="1">311</chan>
</station>
<station prgSvcId="15807">
<chan effDate="2009-04-29" tier="1">202</chan>
</station>
<station prgSvcId="29612">
<chan effDate="2009-04-29" tier="1">211</chan>
</station>
<station prgSvcId="12505">
<chan effDate="2009-06-18" tier="4">901</chan>
</station>
<station prgSvcId="16612">
<chan effDate="2009-06-18" tier="4">902</chan>
</station>
<station prgSvcId="12504">
<chan effDate="2009-06-18" tier="4">903</chan>
</station>
<station prgSvcId="15461">
<chan effDate="2009-06-18" tier="4">904</chan>
</station>
<station prgSvcId="11211">
<chan effDate="2009-06-18" tier="4">780</chan>
</station>
<station prgSvcId="16690">
<chan effDate="2009-06-18" tier="4">781</chan>
</station>
<station prgSvcId="16611">
<chan effDate="2009-06-18" tier="4">782</chan>
</station>
<station prgSvcId="18525">
<chan effDate="2009-06-18" tier="4">783</chan>
</station>
<station prgSvcId="24231">
<chan effDate="2009-06-18" tier="4">784</chan>
</station>
<station prgSvcId="32236">
<chan effDate="2009-06-18" tier="4">785</chan>
</station>
<station prgSvcId="32235">
<chan effDate="2009-06-18" tier="4">786</chan>
</station>
<station prgSvcId="20427">
<chan effDate="2009-06-18" tier="4">787</chan>
</station>
<station prgSvcId="34234">
<chan effDate="2009-06-18" tier="4">788</chan>
</station>
<station prgSvcId="16315">
<chan effDate="2009-06-18" tier="4">789</chan>
</station>
<station prgSvcId="58684">
<chan effDate="2009-06-18" tier="4">790</chan>
</station>
<station prgSvcId="20687">
<chan effDate="2009-06-18" tier="4">792</chan>
</station>
<station prgSvcId="20688">
<chan effDate="2009-06-18" tier="4">793</chan>
</station>
<station prgSvcId="20689">
<chan effDate="2009-06-18" tier="4">794</chan>
</station>
<station prgSvcId="20690">
<chan effDate="2009-06-18" tier="4">795</chan>
</station>
<station prgSvcId="20691">
<chan effDate="2009-06-18" tier="4">796</chan>
</station>
<station prgSvcId="20692">
<chan effDate="2009-06-18" tier="4">797</chan>
</station>
<station prgSvcId="44940">
<chan effDate="2009-06-18" tier="1">118</chan>
</station>
<station prgSvcId="49614">
<chan effDate="2009-06-18" tier="4">791</chan>
</station>
<station prgSvcId="61007">
<chan effDate="2009-06-18" tier="1">015</chan>
</station>
<station prgSvcId="50600">
<chan effDate="2009-07-09" tier="3">605</chan>
</station>
<station prgSvcId="60250">
<chan effDate="2009-07-14" tier="2">675</chan>
</station>
<station prgSvcId="55205">
<chan effDate="2009-08-01" tier="1">113</chan>
</station>
<station prgSvcId="58649">
<chan effDate="2009-08-01" tier="1">135</chan>
</station>
<station prgSvcId="60696">
<chan effDate="2009-08-01" tier="1">643</chan>
</station>
<station prgSvcId="61812">
<chan effDate="2009-08-01" tier="2">684</chan>
</station>
<station prgSvcId="61814">
<chan effDate="2009-08-01" tier="2">685</chan>
</station>
<station prgSvcId="61816">
<chan effDate="2009-08-01" tier="2">686</chan>
</station>
<station prgSvcId="57394">
<chan effDate="2009-08-01" tier="2">689</chan>
</station>
<station prgSvcId="57390">
<chan effDate="2009-08-01" tier="2">690</chan>
</station>
<station prgSvcId="60468">
<chan effDate="2009-08-01" tier="2">691</chan>
</station>
<station prgSvcId="56905">
<chan effDate="2009-08-01" tier="2">692</chan>
</station>
<station prgSvcId="58452">
<chan effDate="2009-08-01" tier="2">693</chan>
</station>
<station prgSvcId="58623">
<chan effDate="2009-08-01" tier="2">694</chan>
</station>
<station prgSvcId="58625">
<chan effDate="2009-08-01" tier="2">695</chan>
</station>
<station prgSvcId="58515">
<chan effDate="2009-08-01" tier="2">696</chan>
</station>
<station prgSvcId="48639">
<chan effDate="2009-08-01" tier="2">697</chan>
</station>
<station prgSvcId="58646">
<chan effDate="2009-08-01" tier="2">699</chan>
</station>
<station prgSvcId="57391">
<chan effDate="2009-08-01" tier="2">688</chan>
</station>
<station prgSvcId="64241">
<chan effDate="2009-08-01" tier="2">700</chan>
</station>
<station prgSvcId="61866">
<chan effDate="2009-08-18" tier="1">119</chan>
</station>
<station prgSvcId="23403">
<chan effDate="2009-09-01" tier="1">095</chan>
</station>
<station prgSvcId="64492">
<chan effDate="2009-09-16" tier="2">687</chan>
</station>
<station prgSvcId="60949">
<chan effDate="2009-11-04" tier="3">600</chan>
</station>
<station prgSvcId="61064">
<chan effDate="2009-11-04" tier="3">617</chan>
</station>
<station prgSvcId="60945">
<chan effDate="2009-11-04" tier="3">618</chan>
</station>
<station prgSvcId="59841">
<chan effDate="2009-11-04" tier="3">619</chan>
</station>
<station prgSvcId="59847">
<chan effDate="2009-11-04" tier="3">620</chan>
</station>
<station prgSvcId="59959">
<chan effDate="2009-11-04" tier="3">621</chan>
</station>
<station prgSvcId="59963">
<chan effDate="2009-11-04" tier="3">622</chan>
</station>
<station prgSvcId="59965">
<chan effDate="2009-11-04" tier="3">623</chan>
</station>
<station prgSvcId="59952">
<chan effDate="2009-11-04" tier="3">624</chan>
</station>
<station prgSvcId="60048">
<chan effDate="2009-11-04" tier="2">679</chan>
</station>
<station prgSvcId="58718">
<chan effDate="2009-11-04" tier="2">698</chan>
</station>
<station prgSvcId="10745">
<chan tier="1">002</chan>
</station>
<station prgSvcId="10714">
<chan tier="1">004</chan>
</station>
<station prgSvcId="10846">
<chan tier="1">005</chan>
</station>
<station prgSvcId="10323">
<chan tier="1">007</chan>
</station>
<station prgSvcId="10746">
<chan tier="1">011</chan>
</station>
<station prgSvcId="10515">
<chan tier="1">013</chan>
</station>
<station prgSvcId="16576">
<chan tier="3">403</chan>
</station>
<station prgSvcId="16619">
<chan tier="3">404</chan>
</station>
<station prgSvcId="10244">
<chan tier="3">401</chan>
</station>
<station prgSvcId="12508">
<chan tier="3">411</chan>
</station>
<station prgSvcId="12509">
<chan tier="3">424</chan>
</station>
<station prgSvcId="18430">
<chan tier="3">405</chan>
</station>
<station prgSvcId="16620">
<chan tier="3">412</chan>
</station>
<station prgSvcId="18434">
<chan tier="3">413</chan>
</station>
<station prgSvcId="18436">
<chan tier="3">414</chan>
</station>
<station prgSvcId="17687">
<chan tier="3">425</chan>
</station>
<station prgSvcId="59615">
<chan effDate="2009-11-17" tier="2">678</chan>
</station>
<station prgSvcId="59375">
<chan effDate="2009-11-17" tier="3">613</chan>
</station>
<station prgSvcId="59950">
<chan effDate="2009-11-17" tier="3">614</chan>
</station>
<station prgSvcId="24569">
<chan effDate="2010-01-18" tier="1">029</chan>
</station>
<station prgSvcId="57705">
<chan effDate="2010-02-01" tier="2">312</chan>
</station>
<station prgSvcId="48024">
<chan effDate="2010-03-08" tier="1">094</chan>
</station>
<station prgSvcId="66804">
<chan effDate="2010-03-29" tier="1">114</chan>
</station>
<station prgSvcId="12852">
<chan effDate="2010-04-01" tier="2">044</chan>
</station>
<station prgSvcId="61483">
<chan effDate="2010-04-27" tier="2">074</chan>
</station>
<station prgSvcId="59814">
<chan effDate="2010-04-29" tier="1">660</chan>
</station>
</lineup>
<lineup>
<station prgSvcId="23309">
<chan effDate="2008-09-23" tier="1">001</chan>
</station>
<station prgSvcId="10745">
<chan effDate="2008-09-23" tier="1">002</chan>
</station>
<station prgSvcId="52675">
<chan effDate="2008-09-23" tier="1">003</chan>
</station>
<station prgSvcId="10714">
<chan effDate="2008-09-23" tier="1">004</chan>
</station>
<station prgSvcId="10846">
<chan effDate="2008-09-23" tier="1">005</chan>
</station>
<station prgSvcId="10408">
<chan effDate="2008-09-23" tier="1">006</chan>
</station>
<station prgSvcId="10323">
<chan effDate="2008-09-23" tier="1">007</chan>
</station>
<station prgSvcId="17098">
<chan effDate="2008-09-23" tier="1">008</chan>
</station>
<station prgSvcId="22223">
<chan effDate="2008-09-23" tier="1">010</chan>
</station>
<station prgSvcId="10746">
<chan effDate="2008-09-23" tier="1">011</chan>
</station>
<station prgSvcId="21912">
<chan effDate="2008-09-23" tier="1">012</chan>
</station>
<station prgSvcId="10515">
<chan effDate="2008-09-23" tier="1">013</chan>
</station>
<station prgSvcId="22128">
<chan effDate="2008-09-23" tier="1">014</chan>
</station>
<station prgSvcId="58802">
<chan effDate="2008-09-23" tier="1">015</chan>
</station>
<station prgSvcId="10161">
<chan effDate="2008-09-23" tier="1">016</chan>
</station>
<station prgSvcId="10162">
<chan effDate="2008-09-23" tier="1">017</chan>
</station>
<station prgSvcId="10296">
<chan effDate="2008-09-23" tier="1">019</chan>
</station>
<station prgSvcId="11069">
<chan effDate="2008-09-23" tier="2">020</chan>
</station>
<station prgSvcId="10269">
<chan effDate="2008-09-23" tier="2">021</chan>
</station>
<station prgSvcId="14948">
<chan effDate="2008-09-23" tier="2">022</chan>
</station>
<station prgSvcId="10919">
<chan effDate="2008-09-23" tier="2">023</chan>
</station>
<station prgSvcId="54292">
<chan effDate="2008-09-23" tier="2">024</chan>
</station>
<station prgSvcId="29677">
<chan effDate="2008-09-23" tier="2">025</chan>
</station>
<station prgSvcId="35371">
<chan effDate="2008-09-23" tier="2">026</chan>
</station>
<station prgSvcId="17561">
<chan effDate="2008-09-23" tier="2">027</chan>
</station>
<station prgSvcId="11208">
<chan effDate="2008-09-23" tier="2">028</chan>
</station>
<station prgSvcId="34240">
<chan effDate="2008-09-23" tier="2">030</chan>
</station>
<station prgSvcId="18510">
<chan effDate="2008-09-23" tier="2">031</chan>
</station>
<station prgSvcId="14753">
<chan effDate="2008-09-23" tier="2">032</chan>
</station>
<station prgSvcId="15451">
<chan effDate="2008-09-23" tier="2">033</chan>
</station>
<station prgSvcId="10179">
<chan effDate="2008-09-23" tier="2">034</chan>
</station>
<station prgSvcId="12444">
<chan effDate="2008-09-23" tier="2">035</chan>
</station>
<station prgSvcId="11062">
<chan effDate="2008-09-23" tier="2">036</chan>
</station>
<station prgSvcId="34710">
<chan effDate="2008-09-23" tier="2">037</chan>
</station>
<station prgSvcId="19002">
<chan effDate="2008-09-23" tier="2">038</chan>
</station>
<station prgSvcId="15952">
<chan effDate="2008-09-23" tier="2">039</chan>
</station>
<station prgSvcId="14776">
<chan effDate="2008-09-23" tier="2">040</chan>
</station>
<station prgSvcId="16011">
<chan effDate="2008-09-23" tier="2">041</chan>
</station>
<station prgSvcId="18480">
<chan effDate="2008-09-23" tier="2">042</chan>
</station>
<station prgSvcId="31556">
<chan effDate="2008-09-23" tier="2">043</chan>
</station>
<station prgSvcId="26046">
<chan effDate="2008-09-23" tier="2">045</chan>
</station>
<station prgSvcId="18151">
<chan effDate="2008-09-23" tier="2">046</chan>
</station>
<station prgSvcId="50001">
<chan effDate="2008-09-23" tier="2">047</chan>
</station>
<station prgSvcId="18793">
<chan effDate="2008-09-23" tier="2">048</chan>
</station>
<station prgSvcId="12510">
<chan effDate="2008-09-23" tier="2">049</chan>
</station>
<station prgSvcId="11007">
<chan effDate="2008-09-23" tier="2">050</chan>
</station>
<station prgSvcId="12499">
<chan effDate="2008-09-23" tier="2">051</chan>
</station>
<station prgSvcId="24959">
<chan effDate="2008-09-23" tier="2">054</chan>
</station>
<station prgSvcId="19543">
<chan effDate="2008-09-23" tier="2">055</chan>
</station>
<station prgSvcId="12500">
<chan effDate="2008-09-23" tier="2">056</chan>
</station>
<station prgSvcId="50000">
<chan effDate="2008-09-23" tier="2">057</chan>
</station>
<station prgSvcId="21762">
<chan effDate="2008-09-23" tier="2">058</chan>
</station>
<station prgSvcId="21760">
<chan effDate="2008-09-23" tier="2">059</chan>
</station>
<station prgSvcId="34215">
<chan effDate="2008-09-23" tier="2">060</chan>
</station>
<station prgSvcId="33648">
<chan effDate="2008-09-23" tier="2">061</chan>
</station>
<station prgSvcId="10139">
<chan effDate="2008-09-23" tier="2">065</chan>
</station>
<station prgSvcId="16300">
<chan effDate="2008-09-23" tier="2">066</chan>
</station>
<station prgSvcId="16374">
<chan effDate="2008-09-23" tier="2">067</chan>
</station>
<station prgSvcId="10142">
<chan effDate="2008-09-23" tier="2">068</chan>
</station>
<station prgSvcId="10145">
<chan effDate="2008-09-23" tier="2">069</chan>
</station>
<station prgSvcId="44626">
<chan effDate="2008-09-23" tier="2">070</chan>
</station>
<station prgSvcId="11187">
<chan effDate="2008-09-23" tier="2">071</chan>
</station>
<station prgSvcId="27203">
<chan effDate="2008-09-23" tier="2">075</chan>
</station>
<station prgSvcId="10987">
<chan effDate="2008-09-23" tier="2">076</chan>
</station>
<station prgSvcId="16376">
<chan effDate="2008-09-23" tier="2">077</chan>
</station>
<station prgSvcId="21744">
<chan effDate="2008-09-23" tier="2">080</chan>
</station>
<station prgSvcId="10150">
<chan effDate="2008-09-23" tier="2">081</chan>
</station>
<station prgSvcId="24533">
<chan effDate="2008-09-23" tier="2">082</chan>
</station>
<station prgSvcId="31555">
<chan effDate="2008-09-23" tier="2">083</chan>
</station>
<station prgSvcId="24483">
<chan effDate="2008-09-23" tier="2">084</chan>
</station>
<station prgSvcId="14762">
<chan effDate="2008-09-23" tier="2">085</chan>
</station>
<station prgSvcId="17983">
<chan effDate="2008-09-23" tier="2">086</chan>
</station>
<station prgSvcId="43377">
<chan effDate="2008-09-23" tier="1">100</chan>
</station>
<station prgSvcId="49719">
<chan effDate="2008-10-08" tier="1">009</chan>
</station>
<station prgSvcId="22231">
<chan effDate="2009-04-29" tier="1">018</chan>
</station>
<station prgSvcId="61007">
<chan effDate="2009-06-18" tier="1">015</chan>
</station>
<station prgSvcId="23403">
<chan effDate="2009-09-01" tier="1">095</chan>
</station>
<station prgSvcId="24569">
<chan effDate="2010-01-18" tier="1">029</chan>
</station>
<station prgSvcId="48024">
<chan effDate="2010-03-08" tier="1">094</chan>
</station>
<station prgSvcId="12852">
<chan effDate="2010-04-01" tier="2">044</chan>
</station>
<station prgSvcId="61483">
<chan effDate="2010-04-27" tier="2">074</chan>
</station>
</lineup>
<areasServed>
<area>
<community>Anchorage</community>
<county code="01020" size="C">Anchorage</county>
<state>AK</state>
</area>
<area>
<community>Chugiak</community>
<county code="01020" size="C">Anchorage</county>
<state>AK</state>
</area>
<area>
<community>Eagle River</community>
<county code="01020" size="C">Anchorage</county>
<state>AK</state>
</area>
<area>
<community>Fairbanks</community>
<county code="01090" size="C">Fairbanks North Star</county>
<state>AK</state>
</area>
<area>
<community>Fort Richardson</community>
<county code="01020" size="C">Anchorage</county>
<state>AK</state>
</area>
<area>
<community>Palmer</community>
<county code="01170" size="D">Matanuska Susitna</county>
<state>AK</state>
</area>
<area>
<community>Wasilla</community>
<county code="01170" size="D">Matanuska Susitna</county>
<state>AK</state>
</area>
</areasServed>
</headend>
"""
nodexml: require './node-xml'
expat: require './expat'
# nodexml: require './libxmljs'
sys: require 'sys'
sys.puts "HI"
iterations: 0
memory: -> Math.round(process.memoryUsage().rss / 1000000) + " MB"
goexpat: ->
parser: new expat.Parser "UTF-8"
parser.addListener 'startElement', (name, attrs) ->
# if name is "headend"
# sys.log "start"
# sys.puts "<$name>"
parser.addListener 'endElement', (name) ->
# sys.puts "</$name>"
if name is "headend"
# sys.log "Done"
iterations += 1
next: ->
sys.log "Continuing - using ${memory()} of memory"
goexpat()
if iterations % 1000 == 0
sys.log "Finished $iterations, Waiting for GC to kick in"
setTimeout next, 10000
else
process.nextTick goexpat
parser.addListener 'text', (text) ->
parser.addListener 'processingInstruction', (target, data) ->
parser.addListener 'comment', (comment) ->
parser.addListener 'xmlDeclaration', (version, encoding, standalone) ->
result: parser.parse headendExample
# sys.puts result
goexpat()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment