Difference between revisions of "PRINT XML()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 22: Line 22:
 
</code>
 
</code>
  
 
+
<pre>
 
<?xml version="1.0" ?>
 
<?xml version="1.0" ?>
 
<data>
 
<data>
Line 35: Line 35:
 
</row3>
 
</row3>
 
</data>
 
</data>
 +
</pre>
  
  

Revision as of 10:07, 17 November 2009

Purpose

Display object as XML


Syntax

PRINT_XML(<object-ref>)


See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), ARRAY(), CLASS, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DODEFAULT(), METHOD, NEWOBJECT(), OBJECT(), PRINT_HTML(), PRINT_JSON(), PRINT_R(), REMOVEPROPERTY(), SET CLASSLIBRARY, WITH


Description

The PRINT_XML() function is used to display the specified object, <object-ref>, in XML.


Example

open database southwind
select * from shippers into object shipobj
print_html(shipobj)
<?xml version="1.0" ?>
<data>
<row1>
<shipperid>1</shipperid><companyname>Speedy Express</companyname><phone>(503) 55
</row1>
<row2>
<shipperid>2</shipperid><companyname>United Package</companyname><phone>(503) 55
</row2>
<row3>
<shipperid>3</shipperid><companyname>Federal Shipping</companyname><phone>(503)
</row3>
</data>


Products

Recital, Recital Server, Recital Web