Hi all,
Having some real troubles parsing the character data from my XML file.
I have two XML elements that appear like so:
<name>Fresh Prince</name>
<story><p>This is a story all about how my life got twisted turned
upside down<p></story>
In my characterdatahandler function I have the following.
switch($this->current_tag){
Case 'NAME':
$this->name = $data;
$this->current_tag = '';
break;
Case 'STORY':
$this->story = $data;
$this->current_tag = '';
break;}
Now I get the name variable just fine. But the story variable comes
up empty. I'm sure it is because it has the paragraph tags in it.
Does anyone know how I can ignore the P tags and just get the data?
Also, something just isn't right. If I put Case 'P', I only get
about 40 characters of the paragraph text. The rest is missing.
If anyone can lend me a hand here it would be GREATLY appreciated.
Thanks!