[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML schema for non-XML file?


xslt for non xml file
6/26/02 9:30:41 AM, Yaneric Roussel <yroussel@s...> wrote:

>I would like to extract informations  from non-xml text file and put it 
>in xml format.
>
>Instead of doing a program for each type of text file I have, I would 
>like to use a "schema like" file specifying the
>structure of my non-xml text file for retriving from it the informations 
>that I will put in xml.
>
>Have you heard of projects/technologie/etc that do this?

You might want to look into the Data Extraction Language, published as a W3C Note 
(http://www.w3.org/TR/2001/NOTE-data-extraction-20011031).  I don't know what the status of 
implementation is, but it looks like it was designed for problems like yours.

>Can I achieve my goal by using XSLT or other xml related technology?

Not directly with XSLT, since it operates on a tree representation of a well-formed XML document.  
However, if you have an XSLT processor that could build such a tree from a stream of SAX events, you 
could write SAX drivers for your input formats and then feed them into the transformation.  SAX 
drivers for non-XML formats are quite popular in the Perl community, among other places.




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.