Search found 5 matches

by danfm
Thu Jun 28, 2007 10:18 pm
Forum: PHP - Code
Topic: Need some help with XML composition.
Replies: 7
Views: 1163

utf8_encode ($story);

Totally works. Thanks again
by danfm
Thu Jun 28, 2007 10:16 pm
Forum: PHP - Code
Topic: Need some help with XML composition.
Replies: 7
Views: 1163

Thanks

Thanks a million.

-Dan
by danfm
Thu Jun 28, 2007 10:05 pm
Forum: PHP - Code
Topic: Need some help with XML composition.
Replies: 7
Views: 1163

These are the error messages

These are the error messages. I think I am seeing the problem. Is it in an incompatible format? Thanks for the continued help. Warning: DOMDocument::saveXML() [function.DOMDocument-saveXML]: string is not in UTF-8 in /services/webpages/c/o/collinsreport.net/public/SaveStory.php on line 130 FILENAME:...
by danfm
Thu Jun 28, 2007 9:18 pm
Forum: PHP - Code
Topic: Need some help with XML composition.
Replies: 7
Views: 1163

I changed it and echoed the debug variable. echo "<P>#####################<P>STORY:<P>$story<P>$$$$$$$$<P>"; $XMLStoryBody = $XMLStory->appendChild($dom->createElement('story_body')); $dbgText = ' - ' . gettype($story) . ' ' . strlen($story) . ' ' . $story . ' - '; echo "<P>dbg - $dbg...
by danfm
Thu Jun 28, 2007 7:31 pm
Forum: PHP - Code
Topic: Need some help with XML composition.
Replies: 7
Views: 1163

Need some help with XML composition.

I just dont get why this does't work... XMLStory is a subset of XMLBlog. XMLStory has two children, story_teaser, and story_body. I have a handful of other tags in the XML document...but for some reason $XMLStoryBody->appendChild( $dom->createTextNode($story) ); does not work. If I put something dir...