新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> XML与各种文件格式的相互转换及相关工具。 word to xml, xml to word, html to xml, xml to pdf,
    csv to xml, rtf to xml, text to xml, xml to text, xls to xml, xml to xls
    FOP
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 WORD to XML, HTML to XML 』 → 求助各位大虾把xml转化为xls格式 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 11181 个阅读者浏览上一篇主题  刷新本主题   平板显示贴子 浏览下一篇主题
     * 贴子主题: 求助各位大虾把xml转化为xls格式 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     jlspwws 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:0
      积分:52
      门派:XML.ORG.CN
      注册:2007/1/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jlspwws发送一个短消息 把jlspwws加入好友 查看jlspwws的个人资料 搜索jlspwws在『 WORD to XML, HTML to XML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jlspwws的博客楼主
    发贴心情 求助各位大虾把xml转化为xls格式

    小弟用的是python,用java也可以,请问各位大虾,有没有什么方法可以把xml格式的文件转化为xls格式的,需要保留原有的格式,因为我的xml文件中有画了和excel一样的表格,所以想一起保留
    xml结构是
    <?xml version="1.0"?>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <LastAuthor>jiangchuan</LastAuthor>
      <LastPrinted>2002-10-24T08:12:48Z</LastPrinted>
      <Created>1997-09-05T06:47:56Z</Created>
      <LastSaved>2002-12-05T12:11:43Z</LastSaved>
      <Company>NEC</Company>
      <Version>11.5606</Version>
    </DocumentProperties>
    <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
      <Colors>
       <Color>
        <Index>39</Index>
        <RGB>#E3E3E3</RGB>
       </Color>
      </Colors>
    </OfficeDocumentSettings>
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>9045</WindowHeight>
      <WindowWidth>12120</WindowWidth>
      <WindowTopX>0</WindowTopX>
      <WindowTopY>1470</WindowTopY>
      <TabRatio>727</TabRatio>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
    </ExcelWorkbook>
    <Styles>
      <Style ss:ID="Default" ss:Name="Normal">
       <Alignment ss:Vertical="Bottom"/>
       <Borders/>
       <Font ss:FontName="MS Pゴシック" x:CharSet="128" x:Family="Modern" ss:Size="11"/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
      <Style ss:ID="s21">
       <Alignment ss:Horizontal="CenterAcrossSelection" ss:Vertical="Center"/>
       <Font ss:FontName="MS Pゴシック" x:CharSet="128" x:Family="Modern" ss:Size="18"/>
      </Style>
      <Style ss:ID="s22">
       <Alignment ss:Horizontal="CenterAcrossSelection" ss:Vertical="Center"/>
      </Style>
      <Style ss:ID="s24">
       <Borders>
        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/>
        <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/>
       </Borders>
       <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
      </Style>
      <Style ss:ID="s25">
       <Borders>
        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
        <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/>
       </Borders>
       <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
      </Style>
    </Styles>
    <Worksheet ss:Name="test123">
      <Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="3" x:FullColumns="1"
       x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
       <Column ss:AutoFitWidth="0" ss:Width="17.25"/>
       <Column ss:AutoFitWidth="0" ss:Width="37.5" ss:Span="2"/>
       <Row ss:AutoFitHeight="0" ss:Height="21">
        <Cell ss:Index="2" ss:StyleID="s21"/>
        <Cell ss:StyleID="s22"/>
       </Row>
       <Row ss:AutoFitHeight="0" ss:Height="14.25"/>
       <Row ss:AutoFitHeight="0">
        <Cell ss:Index="2" ss:StyleID="s24"><Data ss:Type="String">testtest</Data></Cell>
        <Cell ss:StyleID="s25"/>
       </Row>
      </Table>
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <PageSetup>
        <Header x:Margin="0.31496062992125984"/>
        <Footer x:Margin="0.31496062992125984"/>
        <PageMargins x:Bottom="0.39370078740157483" x:Left="0.78740157480314965"
         x:Right="0.43307086614173229" x:Top="0.39370078740157483"/>
       </PageSetup>
       <Unsynced/>
       <FitToPage/>
       <Print>
        <ValidPrinterInfo/>
        <PaperSizeIndex>9</PaperSizeIndex>
        <Scale>99</Scale>
        <HorizontalResolution>600</HorizontalResolution>
        <VerticalResolution>600</VerticalResolution>
       </Print>
       <Selected/>
       <DoNotDisplayGridlines/>
       <Panes>
        <Pane>
         <Number>3</Number>
         <ActiveRow>1</ActiveRow>
         <ActiveCol>3</ActiveCol>
        </Pane>
       </Panes>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
    </Worksheet>
    </Workbook>

       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/1/10 12:05:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 WORD to XML, HTML to XML 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/10 12:17:08

    本主题贴数5,分页: [1]

     *树形目录 (最近20个回帖) 顶端 
    主题:  求助各位大虾把xml转化为xls格式(4222字) - jlspwws,2007年1月10日
        回复:  不是把这个文件的后缀名改称xls,不就能用excel打开了吗?(54字) - hongjuesir,2007年11月3日
        回复:  java的话用dom4j解析然后用jxl和poi基本能搞定(43字) - mlhorizon,2007年5月23日
        回复:  不会啊!(8字) - duotiger,2007年4月4日
        回复:  无人回答啊?(12字) - river_ppp,2007年4月2日

    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    58.594ms