2012-10-15 81 views
-3

我想通過perl腳本將xml轉換爲idml文件。如何將xml轉換爲idml

XML:

<?xml version="1.0"?> 
    <catalog> 
     <book id="bk101"> 
      <author>Gambardella, Matthew</author> 
      <title>XML Developer's Guide</title> 
      <genre>Computer</genre> 
      <price>44.95</price> 
      <publish_date>2000-10-01</publish_date> 
      <description>An in-depth look at creating applications with XML.</description> 
     </book> 
    </catalog> 

請如果IDML讓我知道的任何模塊。

回答

0

下一次當您詢問「是否有X模塊」的問題時,請看CPAN第一個。在這種情況下,一個簡單的search會產生兩個命中;但module (Image::ExifTool)僅支持read access IDML文件。所以答案是沒有,沒有合適的模塊。

如果您手上有太多時間,並且如果這對您來說合法,您可以嘗試對目標格式進行逆向工程。在這種情況下,Perl將成爲最多的粘合語言,並且您將在XSLT轉換中完成大部分工作。