|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-10-06 02:14 UTC] kenny at yellowzone dot com
I used xmltree () function to parse a XML code like the following: ------------------------------- <dmt_body> <![CDATA[ fool < alio@yello.net > kinda missing. ]]> </dmt_body> -------------------------------- It will create following header and send to the web browser by itself. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Since this is not a valid header, IE will not display any content after that. Does any one know what's wrong and how to fix it? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 06:00:01 2025 UTC |
I used xmltree () function to parse a XML code like the following: model2.xml ------------------------------- <dmt_body> <![CDATA[ whatever things. ]]> </dmt_body> -------------------------------- Netscape will compliant "The document contained no data". And IE will say "The Page can not be displayed..." My php code looks like the following: ------------------------------------------- <html><pre> <? $data = implode("",file("model2.xml")); // Error is generated here, by xmltree // even there is no print_r() statement. $osah = xmltree ($data); ?> </pre></html> ------------------------------------------- I used Apache 1.3.12 and libxml2-2.2.4