hey 1 more question, how do you strip tags like <p></p> from output of xml with perl?
i already strip the CDATA but the annoying <p></p> still there
hey 1 more question, how do you strip tags like <p></p> from output of xml with perl?
i already strip the CDATA but the annoying <p></p> still there
[user@cygwin ~]$ cat input
<note>
<to>John</to>
<from>Jack</from>
<heading>Hello</heading>
<body>Howdy</body>
</note>
[user@cygwin ~]$ perl -pe 's/<.+?>//g' input
John
Jack
Hello
Howdy
[user@cygwin ~]$
If you want more accurate solutions, please post a sample input file and desired output.
lets see, for example
<title>NICK</title>
<description><![CDATA[<p>Thanks alot for helping.</p>]]>
<date>today</date>
<link>hi</link>
for my program i output
----------------------------------------------------------
Title: Nick
date: today
link: hi
<p>Thanks alot for helping</p>
the" Description: "is gone and there's <p></p>
the "Description: " disappear i assume it's because of the tags.