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.
In reply to Re: Parse with XML::Simple: how to keep some tags "unparsed"?
by pbeckingham
in thread Parse with XML::Simple: how to keep some tags "unparsed"?
by dda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |