Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Lines Interchange
Input:

<mkt=gbr>
<fil>11543
<pre=0-86315,0-903540>
<pbs>Floris Bks GBR
<imp=I1>
<dst>BkSource GBR
<pre=0-940262,0-9701097,1-58420>
<pbs>SteinerBooks Inc USA
<i=I2>Lindisfarne USA
<dst>BkSource GBR
<cat>Floris Books New Books January-June 2005

Output:

<src>Floris Bks
<mkt=gbr>
<fil>11543cat
<pub>Floris Bks
<cat>Floris Books New Books January-June 2005
<pbs>Floris Bks GBR
<imp=I1>
<pre=0-86315,0-903540>
<dst>BkSource GBR
<pbs>SteinerBooks Inc USA
<imp=I2>Lindisfarne USA
<pre=0-940262,0-9701097,1-58420>
<dst>BkSource GBR

How the above input should be fomated as output. Please help me.

Regards,
Ganesh


Report this thread to moderator Post Follow-up to this message
Old Post
N. Ganesh Babu
04-24-05 08:55 PM


RE: Lines Interchange
N. Ganesh Babu <mailto:ganesh@ald.apexcovantage.com> wrote:

[snip]
: How the above input should be fomated as output. Please help me.

What are the rules?


Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328


Report this thread to moderator Post Follow-up to this message
Old Post
Charles K. Clarkson
04-24-05 08:55 PM


Re: Lines Interchange
Dear Charles,

The rules are as follows:

1. The first tag should be <src (single tag)
2 . The second tag should be <mkt (single tag)
3. The third tag should <fil (may be multiple fil tags)
4. The fourth tag should be <pub (single tag)
5. The fifth tag should be <cat (single tag)
6. Next, the set of 4 tags (<pbs>, <imp>, <pre> and <dst> ) may come
multiple times. <dst> may come multipe times with in the set.

Example:

<src>
<mkt>
<fil>
<fil>
<pub>
<cat>
<pbs>
<imp>
<pre>
<dst>
<pbs>
<imp>
<pre>
<dst>
<dst>

Regards,
Ganesh

Charles K. Clarkson wrote:

>N. Ganesh Babu <mailto:ganesh@ald.apexcovantage.com> wrote:
>
>[snip]
>: How the above input should be fomated as output. Please help me.
>
>    What are the rules?
>
>
>Charles K. Clarkson
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
N. Ganesh Babu
04-25-05 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.