Solved

How to convert Flat files to XML

Posted on 2003-11-13
4
532 Views
Last Modified: 2012-06-21
HI,

I am in a situation to convert Flat files with XFlat schema to XML files without a converter. I need to write a one. Which language or technology would help me out to write that. Can u also suggest a good book on this.

Thanx,
0
Comment
Question by:subbiahm
4 Comments
 
LVL 15

Accepted Solution

by:
dualsoul earned 63 total points
ID: 9745218
hm...what's this xFlat schema?
i think you can parse your flat file and generate SAXevents - so it will look like just a SAXParser parses simple xml. So you get xml on-the-fly from your text file. And then just save it.
   I think you can use any technology you like:
Java, COM the idea is very simple.
0
 
LVL 9

Assisted Solution

by:sparkplug
sparkplug earned 62 total points
ID: 9747799
Why not use XML Convert? http://www.unidex.com/overview.htm.

Alternatively, it is a relatively simple task to read a CSV file and convert to XML in any programming language (VB, Java, C++, C#). The language you use depends on your experience and the environment/platform you are working with.

An XML parser such as MSXML or Xerces would be useful for creating the XML output. If you need to read the XFlat schemas for information about the conversion you can either use a library such as http://www.cadenux.com/xflat/ or, as an XFlat schema is XML, you can read it using an XML parser and write your own code to interprete the informaton within.


>S'Plug<
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now