in reply to Parse with XML::Simple: how to keep some tags "unparsed"?
This is not valid XML. You have a tag, "<content>" that contains both a value "This is", and a child tag "<div class="red">some HTML text</div>". Pick one, or hide the <> characters with <>, or do the right thing and use CDATA.
Update: I stand corrected. I just checked the XML spec (http://www.w3.org/TR/2004/REC-xml-20040204) and gellyfish and ktingle are correct. Sorry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse with XML::Simple: how to keep some tags "unparsed"?
by gellyfish (Monsignor) on Jul 01, 2004 at 13:40 UTC | |
|
Re^2: Parse with XML::Simple: how to keep some tags "unparsed"?
by ktingle (Sexton) on Jul 01, 2004 at 14:23 UTC |