<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello,<BR>
 <BR>
Does anyone knows how to generate xml file from postgres table. <BR>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT size=3><FONT face="Times New Roman">select table_to_xml(‘building3’,true,true,’’);</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT size=3><FONT face="Times New Roman">will print xml file in data output . How can I generate a file, and save it to directory automatically. I want to write this function in php code. </FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT face="Times New Roman" size=3></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT face="Times New Roman" size=3>Thank you very much. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-language: EN"><FONT face="Times New Roman" size=3></FONT></SPAN> </P>                                         </body>
</html>