I've looked high and low for a PHP or Perl script that will take an XML file and turn it into a CSV or other delimited txt file. It seems as if this XML file was created by Excel, but I can't import it into Excel and I can't figure out how to get it into a readable-usable form.
Thanks!
Here's my XML:
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microso
ft-com:off
ice:spread
sheet"
xmlns:o="urn:schemas-micro
soft-com:o
ffice:offi
ce"
xmlns:x="urn:schemas-micro
soft-com:o
ffice:exce
l"
xmlns:ss="urn:schemas-micr
osoft-com:
office:spr
eadsheet"
xmlns:html="
http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microso
ft-com:off
ice:office
">
<LastAuthor>Me</LastAuthor
>
<Created>2006-02-27T19:24:
51Z</Creat
ed>
<Version>11.6568</Version>
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microso
ft-com:off
ice:excel"
>
<WindowHeight>6285</Window
Height>
<WindowWidth>11340</Window
Width>
<WindowTopX>360</WindowTop
X>
<WindowTopY>135</WindowTop
Y>
<ProtectStructure>False</P
rotectStru
cture>
<ProtectWindows>False</Pro
tectWindow
s>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s21">
<Interior/>
</Style>
<Style ss:ID="s22">
<Font x:Family="Swiss" ss:Color="#FF0000"/>
<Interior/>
</Style>
</Styles>
<Worksheet ss:Name="_combind">
<Table ss:ExpandedColumnCount="15
" ss:ExpandedRowCount="1326"
x:FullColumns="1"
x:FullRows="1" ss:StyleID="s21">
<Column ss:StyleID="s21" ss:Width="141"/>
<Column ss:Index="8" ss:StyleID="s21" ss:Width="194.25"/>
<Column ss:StyleID="s21" ss:Width="192"/>
<Column ss:Index="15" ss:StyleID="s21" ss:Width="192"/>
<Row>
<Cell><Data ss:Type="String">Full Name (Name Field)</Data></Cell>
<Cell><Data ss:Type="String">Title</Da
ta></Cell>
<Cell><Data ss:Type="String">Salutatio
n</Data></
Cell>
<Cell><Data ss:Type="String">Nickname<
/Data></Ce
ll>
<Cell><Data ss:Type="String">Last Name</Data></Cell>
<Cell><Data ss:Type="String">First Name</Data></Cell>
<Cell><Data ss:Type="String">Middle Initial</Data></Cell>
<Cell><Data ss:Type="String">Office Name for Address</Data></Cell>
<Cell><Data ss:Type="String">Member E-mail</Data></Cell>
<Cell><Data ss:Type="String">Care of</Data></Cell>
<Cell><Data ss:Type="String">Address</
Data></Cel
l>
<Cell><Data ss:Type="String">City</Dat
a></Cell>
<Cell><Data ss:Type="String">State</Da
ta></Cell>
<Cell><Data ss:Type="String">Zip</Data
></Cell>
<Cell><Data ss:Type="String">E-mail</D
ata></Cell
>
</Row>
<Row ss:Hidden="1">
<Cell><Data ss:Type="String">Gloria</D
ata></Cell
>
<Cell><Data ss:Type="String">Ms. </Data></Cell>
<Cell><Data ss:Type="String">Smith</Da
ta></Cell>
<Cell><Data ss:Type="String">Gloria</D
ata></Cell
>
<Cell><Data ss:Type="String">Smith</Da
ta></Cell>
<Cell><Data ss:Type="String">Gloria</D
ata></Cell
>
<Cell><Data ss:Type="String">R</Data><
/Cell>
<Cell><Data ss:Type="String">PROPERTIE
S</Data></
Cell>
<Cell><Data ss:Type="String">myemail@e
mail.com</
Data></Cel
l>
<Cell ss:Index="11"><Data ss:Type="String">400 Penn</Data></Cell>
<Cell><Data ss:Type="String">Whitsett<
/Data></Ce
ll>
<Cell><Data ss:Type="String">State</Da
ta></Cell>
<Cell><Data ss:Type="Number">27111</Da
ta></Cell>
<Cell><Data ss:Type="String">myemail@e
mail.com</
Data></Cel
l>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microso
ft-com:off
ice:excel"
>
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>-1</
Horizontal
Resolution
>
<VerticalResolution>0</Ver
ticalResol
ution>
</Print>
<Selected/>
<TopRowVisible>62</TopRowV
isible>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>91</ActiveRow>
<ActiveCol>5</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</Pro
tectObject
s>
<ProtectScenarios>False</P
rotectScen
arios>
</WorksheetOptions>
<Sorting xmlns="urn:schemas-microso
ft-com:off
ice:excel"
>
<Sort>Last Name</Sort>
</Sorting>
</Worksheet>
</Workbook>
Start Free Trial