RE: text to xml
If this is not just a one-time conversion, you may want to look into using the "FlexText" utility in Altova MapForce 2006 Enterprise, which is designed for exactly this purpose. FlexText provides a graphical interface that allows you to extract the portions of the text file you want, and map them to any combination of XML, database, EDI, flat file, and Web services data structures. Also, it doesn't sound like this particular file is in either CSV (comma separated value) or FLF (fixed length field) format, but if it is or if you have other text files in these formats, MapForce has powerful extraction and data-mapping features for these text file formats too. For more information on these topics, see... MapForce 2006 overview - http://www.altova.com/products_mapforce.html FlexText overview - http://www.altova.com/features_flextext_mapforce.html CSV, FLF features overview - http://www.altova.com/features_flatfile_mapforce.html Ted Henry Altova, Inc. www.altova.com -----Original Message----- From: sharma.tarun@xxxxxxxxx [mailto:sharma.tarun@xxxxxxxxx] Sent: Monday, January 23, 2006 10:45 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: text to xml Importance: High Hi all, I have a requirement in which I need to convert text file into xml format. Can anybody suggest me how can I use xsl for this purpose. I am a beginner for xsl. Please suggest me some solution or possible some example for it. To be more specific I have a format in which I have the text file. I also have corresponding schema and xml annotation file(which specifies how the file is arranged). Now I need to arrange this text file data into xml. Thanks in advance. Regards -tarun -----Original Message----- From: andrew welch [mailto:andrew.j.welch@xxxxxxxxx] Sent: Monday, January 23, 2006 9:07 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: RE: xml filtering On 1/23/06, Andrew Curry <andrew.curry@xxxxxxxxxxxx> wrote: > > Has anyone ever come accross a webpage that depending on certain parameters > being set, displays only the chosen elements of xml. > I can see this being possible but also very browser intensive. Ideally i > would like to do it in css and 'hide' the appropriate elements but this just > leaves large amounts of white space. So the only other way(bar the use of > some kind of cgi) is xslt. Use display:none instead of visibility:hidden in the CSS - the latter takes up space (showing whitespace) the former doesn't. cheers andrew The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format