Onix-Files.com
Sign In   


Onix-Files.com
Convert or Import Your Onix Files

 
Onix File Converstion and Components for C# and PHP.

PHP Components

Our online conversion is powered by PHP, and you can purchase the files that will help you convert and import onix files into your database.
$279.00

Features:

  1. Large File Support - Since we only parse the file one product at a time, our ONIX reader can read massive files without consuming all your memory.
  2. Simplified Field Output - Onix supports multiple contributors, prices, etc - but you may just want a By-Line to import into your "Author" field. We simplify much of this logic for you with full and simplified field output.
  3. Better XML handling - yes, your data source gave you ONIX - but it may not be standard XML. Not everyone is perfect, so we created an EXTREMELY forgiving and fast XML parser - it looks for patterns in the code the way you would. If you've tried SimpleXML, and failed, our components are right for you.
  4. Backwards compatability - PHP support for any version you happen to be running. We don't all get to use the latest and greatest, so it can be nice to have software that runs on even old versions.

Example Use:

  1. Open and Read a File:
    <?
       $file 
    OpenOnixFile("MyONIXFile.xml");
       
        while( 
    $p next_product($file){
          
          
    //your code here.

       
    }
    ?>
  2. Displaying some basic details in a table.

    <h2>Some Sample Data:</h2>
    <table cellpadding=2 cellspacing=0>
    <tr style="background:#000000;color:white">
    <th>ISBN13/ProductID</th>
    <th>Author</th>
    <th>Title</th>
    <th>Price</th>
    </tr>
    <?

    $i
    =0;

    while( 
    $p next_product($file){
    $bg="#e7e7e7"
    if(
    $i%2==0){$bg="#c0c0c0";}
    $i++;
    if(
    $i<11){
     
    ?>
    <tr style="background:<?echo $bg?>">
    <td><?
    if($p["isbn13"]!=""){
     echo 
    $p["isbn13"];
    } else {
     echo 
    $p["productid"];
    }
    ?></td>
    <td><?echo $p["author"]?></td>
    <td><?echo $p["title"]?></td>
    <td><?echo $p["currency"]?><?echo $p["price"]?></td>
    </tr>
    <?   
    }
    }
    ?>
    </table> 
    <?
    }
    ?>

  3. Retrieving deeper detail about contributors, beyond just an "author" tag. "name" is also a helper field that tries to figure out which of the common name fields contains the contributors name.

    <? if(sizeof($p["contributors"])>0){ ?>
    Name: <?echo $p["contributors"][0]["name"];?>  
    Role: <?echo $p["contributors"][0]["ContributorRole"];?>
    <?
    }?>



?
Contact Us
We'd be glad to help you get your ONIX files converted.


Onix-files.com exists due to the large number of requests to use, or at least convert data related to the ONIX file format. Despite the Detailed ONIX Specifications available online, we frequently encounter poorly formatted XML files. And although our components will attempt to compensate for many common errors, your files may require additional analysis and may not be convertable online. Additional time may be required to modify our components to properly process your files. Please contact us for additional information.