Difference between revisions of "PRINT XML()"

From Recital Documentation Wiki
Jump to: navigation, search
(Example)
 
Line 19: Line 19:
 
open database southwind
 
open database southwind
 
select * from shippers into object shipobj
 
select * from shippers into object shipobj
print_html(shipobj)
+
print_xml(shipobj)
 
</code>
 
</code>
  
Line 36: Line 36:
 
</data>
 
</data>
 
</pre>
 
</pre>
 
  
 
==Products==
 
==Products==

Latest revision as of 00:37, 15 December 2009

Purpose

Display object as XML


Syntax

PRINT_XML(<object-ref>)


See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), CLASS, CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, LOADOBJECT(), METHOD, NEWOBJECT(), OBJECT(), PRINT_HTML(), PRINT_JSON(), PRINT_R(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, 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_xml(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