Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A simple lesson in Arrays? 2

Status
Not open for further replies.

madasafish

Technical User
Jul 18, 2006
78
TH


I am reading a XML file and can capture poid, poname and huid parameters easily but am struggling to catch the fourth parameter "suid" because it matches on "huid" at another random line in the file.

I have simplified the issue with the data shown below. The "...." in the example shown below are random number of lines.

Code:
poid=12		poname=fred 	huid=42
......
huid=51		suid=274
...
poid=09		poname=harry 	huid=84
....
huid=42		suid=189
......
huid=84		suid=2009
..
poid=27		poname=bert 	huid=51

I want to get this output.

Code:
12	fred 	42	189
09	harry 	84  	2009
27	bert 	51	274

As always, thanks in advance

Madasafish
 
Madasafish, just to know, did you try my last suggestions ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top