<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I am parsing an XML file with Python 2.6.5 minidom in
Windows and it is mostly working but minidom seems to have problems dealing
with Windows cr/lf characters. It creates an extra textnode that needs to be
ignored instead of just returning the xml elements. I have tried different methods
of opening the file but it doesn’t seem to make a difference. It is
happiest when reading a file in Unix format.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:7.5pt'><b><span
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:black'>Wayne Peterson
</span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
color:#E8AE10'>|</span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
color:black'> Consultant<br>
Sierra Systems<br>
</span></b><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><br>
</span></b><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:#E8AE10'>(T):</span></b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:black'> 403-264-0955 </span><b><span style='font-size:7.5pt;font-family:
"Verdana","sans-serif";color:#E8AE10'>(C):</span></b><span style='font-size:
7.5pt;font-family:"Verdana","sans-serif";color:black'> 403-710-9248 </span><b><span
style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#E8AE10'>(F):</span></b><span
style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black'>
403-233-2108</span><span style='font-size:12.0pt;font-family:"Verdana","sans-serif";
color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:black'>7th Floor, Canadian Centre<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:black'>833 4th Avenue SW<br>
Calgary, Alberta, T2P 3T5<o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";
color:black'>Management Consulting </span></b><b><span style='font-size:7.0pt;
font-family:"Verdana","sans-serif";color:#E8AE10'>|</span></b><b><span
style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:black'> System
Integration </span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";
color:#E8AE10'>|</span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";
color:black'> Managed Services<br>
</span></b><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:black'>website: www.SierraSystems.com</span></b><o:p></o:p></p>
</div>
<p></p><p>----Notice Regarding Confidentiality----<br>This email, including any and all attachments, (this "Email") is intended only for the party to whom it is addressed and may contain information that is confidential or privileged. Sierra Systems Group Inc. and its affiliates accept no responsibility for any loss or damage suffered by any person resulting from any unauthorized use of or reliance upon this Email. If you are not the intended recipient, you are hereby notified that any dissemination, copying or other use of this Email is prohibited. Please notify us of the error in communication by return email and destroy all copies of this Email. Thank you.</body>
</html>