vonman has asked for the wisdom of the Perl Monks concerning the following question:
I have written the following snippet to read the file:Feb 30 10:55:23: [B:S:0:12345abcd:Information] Information Feb 30 10:55:23: Before converting xml into DOM in the XMLRespToEvent +method Feb 30 10:55:23: The xmlString before parsing is : <?xml version="1.0" + encoding="ISO-8859-1" ?> <outputGetSubscriptionInfo ixc=""> <svcAsgmInfo svcEffDt="2002-04-29" svcExprDt="9999-12-31" salesChnlI +d="CC"> <primarySvc svcNm="F W-CTP" svcId="abcdefghij:" svcTyp="PK" svcDes +c="Basic service &MWI" srchCategory="PK" extnClassNm="COM_SVC"> <depositAmt/> <charge chgTypeCd="R" chgStDt="2001-08-01"> <chgAmt amntDue="0.00"/> </charge>
Whenever the program hits a line with the XML it just prints a blank line. Any ideas? Also, after writing a general parsing engine I will need to write another program to parse through the XML. Best recommendations? Thanks in advance!!!!! Richwhile (<LOGDATA>) { $logline=$_; print ("The whole line is ---> ",$logline); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is this program producing blank lines when parsing a file
by cLive ;-) (Prior) on May 20, 2002 at 21:43 UTC | |
by vonman (Acolyte) on May 20, 2002 at 22:01 UTC | |
|
Re: Why is this program producing blank lines when parsing a file
by graff (Chancellor) on May 20, 2002 at 22:50 UTC |