XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + edi converter - java fails (10)
-> + ddtek:serialize (3)
-> - File explorer view (1)
-> - Java Extension Functions (1)
-> + err:FODC0004 (18)
-> - Removing Attributes when Null (1)
-> + CDATA preservation (6)
-> + Help converting xml report to ... (2)
-> - Converting text to XML issue (3)
-> ->Converting text to XML is...
-> ->Converting text to XML is...
-> - example not working (1)
-> + XML Editing (2)
-> + Multiple EDI messages within s... (5)
-> + Mapping RDBMS and XML Schema t... (2)
-> + MySQL Database importing (2)
-> + XSD validation using XSV fails... (3)
-> + Is this really well-formed? (3)
-> + HL7 EDI to XML problems -'ORU_... (11)
-> + How do I modify the Xquery to ... (2)
-> + XML mapping difficulty (3)
-> + XLST Conversion (2)
-- Previous [541-560] [561-580] [581-600] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Luka StolyarovSubject: Converting text to XML issue
Author: Luka Stolyarov
Date: 12 May 2010 02:56 PM
Hello. I'have recently discovered Stylus Studio and am still actively learning it. Here's the problem I have. I have a cvs file in this format:

Filing Type,STATE TAX LIEN:Action Type,STATE TAX LIEN:Volume or Book,4779:Filing Date,03/08/2010:Debtor,Debtor's Name:Debtor Amount,157 followed by and end of line character.

If I import it right now and convert it to XML, the commas are being interpreted correctly and so does the end of line. However, the : are ignored. Is there a way for me to specify how to define the comma as a delimiter between key and value and : as a delimiter between key>value pairs.

Thanks!
Luka

Postnext
Tony LavinioSubject: Converting text to XML issue
Author: Tony Lavinio
Date: 13 May 2010 11:56 AM
Try using the Custom XML Converters, and setting the Region->Component Separator to ':'.

The key=value setting would be perfect, except your data appears to be value=key :(.

Posttop
Luka StolyarovSubject: Converting text to XML issue
Author: Luka Stolyarov
Date: 13 May 2010 01:30 PM
I will give it a shot. Thank you!

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

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