Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2004

Tip: Looking for answers? Try searching our database.

CSV to XML

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MIB426 - 25 Oct 2004 07:55 GMT
Hi all
I got string like this.
New South Wales(NSW), Victoria(VIC), Queensland(QLD), South
Australia(SA), Western Australia(WA), Tasmania(TAS), Australian
Capital Territory(ACT), Northern Territory(NT)

is there anyway i can use XSLT transformation to become

<select>
<option id="NSW" text="New South Wales" />
<option id="VIC" text="Victoria" />
<option id="QLD" text="Queensland" />
<option id="SA" text="South Australia" />
<option id="WA" text="Western Australia" />
<option id="TAS" text="Tasmania" />
<option id="ACT" text="Australian Capital Territory" />
<option id="NT" text="Northern Territory" />
</select>

Please let me know if u can help.
thank you
Han - 27 Oct 2004 05:16 GMT
You can't use XSLT against non-XML data. If your data is quite regular like
your post, regular expression will do. Such as, ([^\(]+)\(([^\)]+). Then you
will have XML to be transformed.

> Hi all
> I got string like this.
[quoted text clipped - 22 lines]
>  www.GroupSrv.com
> *-----------------------*

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.