Network World
Saturday, November 22, 2008
DNSstuff.com
Get information about your IP
IP Information
50+ On-demand DNS and network tools

Community: Software

Navigation

RE: Wrangling XML data to CSV

Mike,

This eCommerce research effort of yours is an incredibly valuable topic to me and many others that have online stores. We want some integration with our QB's to end the mindless, error-prone, time-consuming re-entry of data. I've spent many hours trying to find out what is really being offered by the stores you have investigated as well as other 'conversion tools' and I haven't made a move (from my Yahoo hosted store) out of fear that I'll only really discover the pitfalls of an ecommerce offering once I'm heavily invested in it. KEEP UP THIS TOPIC!!! THANKS.

Click to read the article this is in response to.

xml to usable stuff

0

If the XML file is text - which it should be from what I've seen - you can use PERL or code that works like PERL to search for key characters and sequences of characters. If you really need Excel as a final product, you should be able to build a resulting .CSV like file that Excel will import with no problem. If you want to do it in one step, macro running from a button calling code to open the file should be easy enough.

MS supposedly makes it "easy" to pull apart XML files in .NET. However, if you aren't trying to parse the entire file but find specific pieces, I thought their approach was overkill when they tried to teach it to me a few years ago. I could write a piece of code in QBASIC to pull out a few specific fields faster than I could write code "their way." Admittedly, their code may be easier to change than mine, but it will depend on how often you think the input file will change as to your approach. To a fairly novice coder, it might be easier to do it the MS way for a permanent solution; but I was pulling fields out of 255 character report rows wrapped at 80 characters 10 years ago, so maybe I've got an advantage.

Have you tried Excel?

0

I've used Excel to do similar transformations.

You should also be able to use XPath/XSLT but Excel is a lot easier.

Mike

The Windows cult

0

Well your questions indicate that you've been corrupted by the Microsoft Windows "philosophy".

cronjob
shell
perl

a couple of hours of work and one is done.

Biztalk

0

Microsoft Biztalk could handle the translation, but alas that would likely fall in to the overkill category.

Said the man who once killed a pesky bumble bee with a 20 gauge shot gun. True story. What? Oh, of course the missus was not home. Do I seem crazy?

Shopify

0

Mark,

I just read about your problems with finding a good e-commerce tool. I feel your pain. I set up a friend of mine with 1&1's solution and it has been a headache to manage ever since. Shopify (www.shopify.info) has caught my eye since then, but I haven't had a chance to try out their service.

I saw you were looking for a tool to convert XML to CSV. We use Jitterbit for a lot of our data conversions. It may be a bit overkill for your application, but is really easy to use, and best of all, free! This open source application consists of a server that does the transformations and a client for graphically making the transformation. Learn more about it at www.jitterbit.com.

Wow

0

Thanks for the recommendations – I like the look of JitterBit – wow!

Another possibility

0

Haven't tried it.

www.safe-install.com/programs/a7soft-xml2csv.html

Might be what you need.

Yep

0

That's one of my candidates for a solution.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <i> <b> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <br /> <br> <p>
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Advertisement: