Difference between revisions of "XMLCREATEDTD()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=XMLCREATEDTD()=
 
 
 
 
==Class==
 
==Class==
 
XML
 
XML
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[XMLCOUNT()]], [[XMLVALIDATE()]], [[XMLFIRST()]], [[XMLNEXT()]], [[COPY]], [[SQL SELECT|SELECT]], [[FETCH]], [[SQL UPDATE|UPDATE]]
+
[[COPY]], [[FETCH]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]], [[XMLCOUNT()]], [[XMLVALIDATE()]], [[XMLFIRST()]], [[XMLNEXT()]]
  
  
Line 48: Line 45:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:XML]]
 +
[[Category:XML Functions]]

Revision as of 15:27, 2 June 2009

Class

XML


Purpose

Function to create a Document Type definition file for a particular table


Syntax

XMLCREATEDTD([<workarea>])


See Also

COPY, FETCH, SELECT, UPDATE, XMLCOUNT(), XMLVALIDATE(), XMLFIRST(), XMLNEXT()


Description

The XMLCREATEDTD() function will create a Document Type Definition (DTD) file which matches the table open in the current workarea. This DTD file can then be used to validate Extensible Markup Language (XML) files created for this table. An optional workarea name or number may be specified to select a table in another workarea.


Parameters Required Default Description
<workarea> No None The workarea number or name to use.


The XMLCREATEDTD() function will return .T. for success and .F. if it fails.

Note: The XMLFORMAT setting determines whether Recital creates the DTD file. A DTD file will only be created when XMLFORMAT is set to Recital. If XMLFORMAT is set to ADO, the XMLCREATEDTD() will return .T., but no DTD file will be created.


Example

use prospect
set xmlformat to recital
? xmlcreatedtd()
.T.


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer