Difference between revisions of "XMLCREATEDTD()"

From Lianjapedia
Jump to: navigation, search
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to create a Document Type definition file for a particular table
 
Function to create a Document Type definition file for a particular table
 
  
 
==Syntax==
 
==Syntax==
 
XMLCREATEDTD([<workarea>])
 
XMLCREATEDTD([<workarea>])
 
  
 
==See Also==
 
==See Also==
[[COPY]], [[FETCH]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]], [[XML]], [[XML_DECODE()]], [[XML_ENCODE()]], [[XML_GATHER()]], [[XML_SCATTER()]], [[XMLCOUNT()]], [[XMLFIRST()]], [[XMLNEXT()]], [[XMLVALIDATE()]]
+
[[COPY]], [[FETCH]], [[PRINT_XML()]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]], [[XML]], [[XML_DECODE()]], [[XML_ENCODE()]], [[XML_GATHER()]], [[XML_SCATTER()]], [[XMLCOUNT()]], [[XMLFIRST()]], [[XMLNEXT()]], [[XMLVALIDATE()]], [[XQUERY()]], [[XQUERY ATTRIBUTES()]], [[XQUERY_CLOSE()]], [[XQUERY_COUNT()]], [[XQUERY_DECODE()]], [[XQUERY_FILE()]], [[XQUERY_FIND()]], [[XQUERY_NODE()]], [[XQUERY_OPEN()]], [[XQUERY_SELECT()]]
 
+
  
 
==Description==
 
==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.
 
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.
  
 
+
{| class="wikitable" width="100%"
{| class="wikitable"
+
 
!Parameters||Required||Default||Description
 
!Parameters||Required||Default||Description
 
|-
 
|-
Line 21: Line 17:
 
|-
 
|-
 
|}
 
|}
 
  
 
The XMLCREATEDTD() function will return .T. for success and .F. if it fails.
 
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.
+
Note: The XMLFORMAT setting determines whether Lianja creates the DTD file. A DTD file will only be created when XMLFORMAT is set to Lianja. If XMLFORMAT is set to ADO, the XMLCREATEDTD() will return .T., but no DTD file will be created.
 
+
  
 
==Example==
 
==Example==
Line 36: Line 30:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:XML]]
 
[[Category:XML]]
[[Category:XML Functions]]
 

Latest revision as of 08:37, 29 February 2016

Purpose

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

Syntax

XMLCREATEDTD([<workarea>])

See Also

COPY, FETCH, PRINT_XML(), SELECT, UPDATE, XML, XML_DECODE(), XML_ENCODE(), XML_GATHER(), XML_SCATTER(), XMLCOUNT(), XMLFIRST(), XMLNEXT(), XMLVALIDATE(), XQUERY(), XQUERY ATTRIBUTES(), XQUERY_CLOSE(), XQUERY_COUNT(), XQUERY_DECODE(), XQUERY_FILE(), XQUERY_FIND(), XQUERY_NODE(), XQUERY_OPEN(), XQUERY_SELECT()

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 Lianja creates the DTD file. A DTD file will only be created when XMLFORMAT is set to Lianja. 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.