table_to_xml command isn"t working
am 27.11.2007 16:51:54 von Luigi PirilloThis is a multi-part message in MIME format.
style=3D'font-size:10.0pt;
style=3D'font-size:10.0pt;
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
style=3D'font-size:
lang=3DEN-GB
lang=3DEN-GB
------=_NextPart_000_0000_01C83115.D287F9A0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hello,
I have registered an odbc entry (named xfpdb) on my Windows XP Pro machine
using PosgreSQL Ansi vers. 8.02.05 (my db server is 8.3 beta 1).
Using a simple VB 6.0 code, I have tried to connect to it and return some
XML information using ADO as in the following:
..
cn.Open "Provider=MSDASQL.1;Persist Security Info=False;Data
Source=xfpdb"
rs.Open "select * from table_to_xml('""Versions""', true, true, '')", cn
MsgBox rs.Fields(0).Value
..
The returned XML string appears truncated, as shown below:
------------------------------------------------------------ ----------------
---------------------------
------------------------------------------------------------ ----------------
---------------------------
Same result using Labview 8.2.1 and its database connectivity tool.
But if I try to execute the query directly using pg Admin III, the XML
output is correct, as shown below:
------------------------------------------------------------ ----------------
---------------------------
------------------------------------------------------------ ----------------
---------------------------
Can anyone help me?
Thanks in advance,
Luigi
------=_NextPart_000_0000_01C83115.D287F9A0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
charset=3Dus-ascii">
name=3D"City"/>
name=3D"place"/>
font-family:Arial'>Hello,
font-family:Arial'>
10.0pt;font-family:Arial'>I have registered an odbc entry (named xfpdb) =
on my
Windows XP Pro machine using PosgreSQL Ansi vers. 8.02.05 (my db server =
is 8.3 beta
1).
10.0pt;font-family:Arial'>Using a simple VB 6.0 code, I have tried to =
connect
to it and return some XML information using
following:
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
….
10.0pt;font-family:Arial'> cn.Open =
"Provider=3DMSDASQL.1;Persist Security
Info=3DFalse;Data Source=3Dxfpdb"
10.0pt;font-family:Arial'> rs.Open "select * from
table_to_xml('""Versions""', true, true, '')", =
cn
10.0pt;font-family:Arial'> MsgBox =
rs.Fields(0).Value
10.0pt;font-family:Arial'> =
……
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>The returned XML string appears truncated, as =
shown below:
10.0pt;font-family:Arial'>---------------------------------- -------------=
--------------------------------------------------------
10.0pt;font-family:Arial'><Versions
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>962</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.0</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:28.20</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>963</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.1</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>964</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.2</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>965</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.3</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</C &nbs=
p;  =
; @
10.0pt;font-family:Arial'>---------------------------------- -------------=
--------------------------------------------------------
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>Same result using Labview 8.2.1 and its =
database connectivity
tool.
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>But if I try to execute the query directly =
using pg Admin
III, the XML output is correct, as shown =
below:
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>---------------------------------- -------------=
--------------------------------------------------------
10.0pt;font-family:Arial'><Versions
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>962</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.0</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:28.20</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>963</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.1</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>964</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.2</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'><Versions =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'> =
<Version_Id>965</Version_Id>
10.0pt;font-family:Arial'> =
<Version>0.0.0.3</Version>
10.0pt;font-family:Arial'> =
<Process_Id>600</Process_Id>
10.0pt;font-family:Arial'>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
10.0pt;font-family:Arial'></Versions>
10.0pt;font-family:Arial'>---------------------------------- -------------=
--------------------------------------------------------
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>Can anyone help =
me?
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>Thanks in =
advance,
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>Luigi
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>
10.0pt;font-family:Arial'>
style=3D'font-size:12.0pt'>
style=3D'font-size:12.0pt'>
------=_NextPart_000_0000_01C83115.D287F9A0--