我收到了一个“xml”文件,尽管它看起来并不像 XML。我知道它是从 Microsoft Access 或 SQLServer 导出的。该文件看起来像这样:
>>> contents[:1000]
'\xef\xbb\xbf<?xml version="1.0"?><Report xmlns="Ascent_x0_Metadata_x0020_Report_x0020__x002ted"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="Ascent_x0020_Me0_Repo29__x0020_updated http://reportserver?
%2fAsata+Report+(by+Title+Letter)+updated&rs%3aFormat=XML&rc%3aSchema=True"
Name="Ascent Report (by Title Letter) updated">
<table1>
<Detail_Collection>
<Detail ISOCountry="AR" TitleSort="A Very Brady Sequel"
ReleaseYear="1996" TitleKind="N/A" TitleType="N/A"...
此外,我什至无法打开这个文件TextMate
——每次我尝试它都会使程序崩溃。