473,396 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using of arrays... Can anyone help me?

Input XML code:

Expand|Select|Wrap|Line Numbers
  1. <IMPORTANTList>
  2. <IMPORTANT>
  3. <A ID="pgfId-123"></A>
  4. <Normal>-----------------------------------------------------------------------------------------</Normal>
  5. IMPORTANT:     
  6. <Normal>-----------------------------------------------------------------------------------------</Normal>
  7. </IMPORTANT>
  8. <DIV>
  9. <IMAGE xml:link=...>
  10. </DIV>
  11. Take precuations.<DIV>
  12. <IMAGE xml:link=...>
  13. </DIV>
  14. </IMPORTANTList>
  15.  
  16. Desired XML output code:
  17.  
  18. <IMPORTANTList>
  19. <IMPORTANT>
  20. <A ID="pgfId-123"></A>
  21. <Normal>-----------------------------------------------------------------------------------------</Normal>
  22. IMPORTANT: 
  23. <DIV>
  24. <IMAGE xml:link=...>
  25. </DIV>
  26. Take precuations.<DIV>
  27. <IMAGE xml:link=...>
  28. </DIV>
  29. <Normal>-----------------------------------------------------------------------------------------</Normal>
  30. </IMPORTANT>
  31. </IMPORTANTList>
  32.  
  33. Printed output:
  34. ----------------------------------------------------------------------------------------- 
  35. IMPORTANT: Take precautions.
  36. ----------------------------------------------------------------------------------------
Hi,
How do u write a code to achieve the desired output code using perl language? I wish to know how to extract this part

Expand|Select|Wrap|Line Numbers
  1. <DIV>
  2. <IMAGE xml:link=...>
  3. </DIV>
  4. Take precuations.<DIV>
  5. <IMAGE xml:link=...>
  6. </DIV>
and shift it to the desired location using array method in perl. Thanks.
Jan 16 '07 #1
1 1072
eWish
971 Expert 512MB
Have you resolved your issue? If so, then please post your solution. This resembles homework / coursework which is against TSDN Posting Guidelines.

Look at using an XML Parser from CPAN

--Kevin
Nov 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Dariusz | last post by:
I want to use arrays in my website (flat file for a guestbook), but despite having read through countless online tutorials on the topic, I just can't get my code to work. I know there are...
2
by: Jason | last post by:
I have a number of arrays that are populated with database values. I need to determine which array has the highest ubound out of all the arrays. The array size will always change based on the...
6
by: S Manohar | last post by:
I need to pass a 'reference' to a double value to a function which changes that value. Each time the function is called, it needs to change different sets of values. In C I'd simply pass...
0
by: Tom | last post by:
Shouldn't you be able to return them as 3 By Ref arguments in the function call? >-----Original Message----- >I have a class with a function which need to return to the caller three...
5
by: Alan Howard | last post by:
We're getting "ERROR (0x8007000E) Not enough storage is available to complete this operation" errors on a fairly large, busy ASP/SQL Server web site. The error is being thrown on a line calling...
3
by: Ian Davies | last post by:
I have a table with each column containing the following form objects - combobox, hidden field, textarea, and tick box. I have created arrays from each of these columns and now I wish to use the...
0
by: antique | last post by:
iam supposed to CREATE A FUNCTION INT ADJUSTEDSUM (INT,INT) 1. find the sum of the array of size 100 2. find the number of occurrence of a MIN and MAX number if its twice or more only use 1...
2
by: The Big Fat Sloppy Pig! | last post by:
x-no-archive: yes Hi All: I'm sort of "new" to doing this so I was wondering if anyone can offer some additional insight/suggestions. I've created a web-service that will be receiving some...
0
by: HalfCoded | last post by:
hi everyone, I am kind of stuck and therefore would really appreciate some clues: I actually have to run a script which has to compare two elements from two different files which are a blast...
127
by: sanjay.vasudevan | last post by:
Why are the following declarations invalid in C? int f(); int f(); It would be great if anyone could also explain the design decision for such a language restricton. Regards, Sanjay
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.