11 replies [Last post]
Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
Was this information Helpful?

Hey,

I recieve all my product/price-lists in Excel sheets. They look rather similar:

SKU, VendorProductNo, Description, Price1, Price2, (... PriceN)

How should I convert them to the required XML format?
(I use OpenOffice + Linux)

Actually I did some research, so I have an XML schema description from other forum topics, but I'm just new to this XML stuff.

Thank in advance,

Zsigmond

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
update

actually the price-lists require some customization, so maybe I will import them to some kind of DB (OO + SQL backend or simply MySQL)
But how can the DB (or XLS) mapped to the required XML schema?

Sorry, I'm a newbie

Thanks

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
DTD

actually, as far as I know, Open Office is able to convert XLS to XML, there are various predefined XML filters available.
The only thing I need now is a DTD...

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: DTD

There isn't a DTD, but there is a Schema file at http://www.ubercart.org/files/store.xsd

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
XSD

thanks! massive!
I think I will discover OO's XML conversion possibilities soon...

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
OO + XML

for those who are interested: http://xml.openoffice.org/filter/

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
OO help

"To create an XML filter, you must have a good understanding of XML and XSLT concepts. These concepts are beyond the scope of this help"

Laughing out loud

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
XSLT

"1.Create an XSLT transformation stylesheet that maps the elements of the external XML format to the elements of the OpenDocument XML file format and back again."

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
XSLT

check this, and you are ready: http://www.w3.org/TR/xslt

Eye-wink

quaoar's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 179
Re: XSLT

You could just save the Excel file as a CSV file and run it through CpILL's csv_import and choose the option to "Show import XML only".

Look here for more information:
http://www.ubercart.org/forum/development/803/csv_import_0_1_alpha

Erlend Strømsvik
Ny Media AS
erlend@nymedia.no

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
let's see

I think that will be the solution.
Let's give it a try!

Thanks

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
[SOLVED]

OK, the CVS importer IS the ultimate solution.
It is much easier to provide a CVS file from an XLS given, than an XML.
I'd love to see the CVS importer in the next realese!

Keep up the good work guys! Smiling

Best regards,

Zsigmond