Guest_imported
New member
- Jan 1, 1970
- 0
Here is my situation
I am pulling down an XML page to a text file, I need to be able to get certain information from this text file. I dont know if my brain has quit working but I am stuck.
The XML file comes down as one huge long line, no new lines no nothing.
This is a sniplet of this large line:
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE masterController SYSTEM "/masterController.dtd"><masterController hostName="ccm-vns1" numLocals="1"><localController hostName="ccm-vns1" numChains="16"><chain chainID="19-2" broadcasting="yes" streamwidth="3645"><TRANSMITTER NumChildren="10" NumPending="0" MaxChildren="26" NumFailures="0" NodeId="123.654.987.177:80"><PLAYER NumChildren="0" NumPending="0" MaxChildren="52" NumFailures="1" NodeId="123.456.789.65-172.16.5.72:8026 (behind firewall)"></PLAYER><REPEATER NumChildren="0" NumPending="0" MaxChildren="54" NumFailures="0" NodeId="256.194.240.119:8005"></REPEATER>
Basically this is the same informaiton along the entire document.
Now I am relativly new with perl, and I have pulled in files and got information out if it when it was well lets say organized.
So what I would like to pull from this information is either a file that lists the following:
19-2 #Represents ChainID
TRANSMITTER 123.654.987.177:80 #IP Address of TRANSMITTER
REPEATER 256.194.240.119:8005 #IP Address of REPEATER
ANY help on this will be greatly appreciated.
Thank you in advace
I am pulling down an XML page to a text file, I need to be able to get certain information from this text file. I dont know if my brain has quit working but I am stuck.
The XML file comes down as one huge long line, no new lines no nothing.
This is a sniplet of this large line:
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE masterController SYSTEM "/masterController.dtd"><masterController hostName="ccm-vns1" numLocals="1"><localController hostName="ccm-vns1" numChains="16"><chain chainID="19-2" broadcasting="yes" streamwidth="3645"><TRANSMITTER NumChildren="10" NumPending="0" MaxChildren="26" NumFailures="0" NodeId="123.654.987.177:80"><PLAYER NumChildren="0" NumPending="0" MaxChildren="52" NumFailures="1" NodeId="123.456.789.65-172.16.5.72:8026 (behind firewall)"></PLAYER><REPEATER NumChildren="0" NumPending="0" MaxChildren="54" NumFailures="0" NodeId="256.194.240.119:8005"></REPEATER>
Basically this is the same informaiton along the entire document.
Now I am relativly new with perl, and I have pulled in files and got information out if it when it was well lets say organized.
So what I would like to pull from this information is either a file that lists the following:
19-2 #Represents ChainID
TRANSMITTER 123.654.987.177:80 #IP Address of TRANSMITTER
REPEATER 256.194.240.119:8005 #IP Address of REPEATER
ANY help on this will be greatly appreciated.
Thank you in advace