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

Re: Non-XML documents to XML Converter?

  • From: "Roger L. Costello" <costello@m...>
  • To: kvisco@m..., "xml-dev@i..." <xml-dev@i...>
  • Date: Tue, 18 May 1999 06:52:42 -0400

xml converter mac
Thanks for all the responses to my message.  I would like to clarify my
original posting and present some thoughts on how this might relate to

The documents that I am trying to convert to XML are slash-delimited. A
double slash terminates a "set".  A set is comprised of "fields". 
Here's a simple example:


Here I show two "sets".  The second set extends over two lines.  Each
set is comprised of a number of fields.  The first field in a set
identifies the set type (it is the set identifier).

I would like to convert this into an XML document that looks like this:

    <message1 setid="fruit">
    <message2 setid="person">

The particular syntax here is not really important.  The thing to note
is that for a generic transformation engine to work you need to 

(1) supply it a description of the format of the document to be
transformed.  For this example, such info might be "slash-delimited,
double slash terminated lines".

(2) supply it the transformation rules.  For example, 
         rule: match="fruit" {
               <message+count() setid="fruit">

(3) and of course you need to supply it the actual document to be

Interestingly, while driving in this morning I realized that this is
what an XSL processor does.  The only difference is that an XSL
Processor has (1) hardcoded to use <...> as the delimiter.

I think that it would be interesting to make an XSL Processor more
generic such that you could "plug in" a format description document. 
Thus, the XSL Processor could transform not just XML documents, but any
kind of documents.  Comments?

In any case, I will check out those URLs that people sent to me of
conversion tools.  Happy Tuesday!  /Roger

Robert C. Lyons wrote:
> Roger wrote: "Anyone have a tool that converts a document that is formatted in a
> non-XML syntax into XML?"
> Roger,
> XML Convert might be able to convert your non-XML document into XML.
> XML Convert can convert a wide range of flat files into XML.
> It uses a flat file schema to parse and validate the flat file
> and convert it into an XML document.
> You can download XML Convert for free at http://www.unidex.com/download.htm.
> Best regards,
> Bob
> ------
> Bob Lyons
> EC Consultant
> Unidex Inc.
> 1-732-975-9877
> boblyons@u...
> http://www.unidex.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.