RE: exporting to xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you don't see them because they are interpreted as HTML tags, they are
unknown, so they are ignored.

options;

1. View -> Source

2. Encode all "<" as &lt; (HTML version) and it will display it all
   as text, then you can copy-paste it to somewhere else

3. Wrap it all in a <pre> tag, then follow 2.

4. Output the proper XML declaration at the top of the file so that
   IE treats it like XML, and does it's fancy dynamic-tree style
   presentation.

   <?xml version="1.0"?>

   ^--- a very basic XML declaration

HTH

Beau

// -----Original Message-----
// From: Martin Hudec [mailto:corwin@corwin.sk]
// Sent: Wednesday, 30 October 2002 12:00 AM
// To: php-db@lists.php.net
// Subject:  exporting to xml
// 
// 
// Hello,
// 
//   i am creating script which will make select and desc to table and
//   then based on results it will make xml file...all is okay, 
// but on my
//   IE it takes it as xml file (it is okay) BUT on my screen I dont see
//   any of <something> tags...how can i override that?
// 
//   script is here:
// 
// header("Content-type: text/xml");
// 
// ....db related stuff...
// 
// $fcount = mysql_num_fields($result);
// 
// print "<result>"; //will be table name
// 
// while($row = mysql_fetch_array($result)){
// print "<row>";
// for($i=0; $i<$fcount; $i++){
// $tag = mysql_field_name($result,$i);
// print "<$tag>". $row[$i]. "</$tag>";
// }
// print "</row>";
// }
// 
// -- 
// Best regards,
//  Martin                          mailto:corwin@corwin.sk
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux