Difference between revisions of "XMLVALIDATE()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
XML
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to validate an XML file against its DTD file
 
Function to validate an XML file against its DTD file
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[COPY]], [[FETCH]], [[SQL SELECT|SELECT]], [[SET XMLFORMAT]], [[SQL UPDATE|UPDATE]], [[XMLCOUNT()]], [[XMLCREATEDTD()]], [[XMLFIRST()]], [[XMLNEXT()]]
+
[[COPY]], [[FETCH]], [[SQL SELECT|SELECT]], [[SET XMLFORMAT]], [[SQL UPDATE|UPDATE]], [[XML]], [[XML_DECODE()]], [[XML_ENCODE()]], [[XML_GATHER()]], [[XML_SCATTER()]], [[XMLCOUNT()]], [[XMLCREATEDTD()]], [[XMLFIRST()]], [[XMLNEXT()]]
  
  
Line 40: Line 36:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:XML]]
 
[[Category:XML]]
 
[[Category:XML Functions]]
 
[[Category:XML Functions]]

Latest revision as of 14:21, 19 November 2009

Purpose

Function to validate an XML file against its DTD file


Syntax

XMLVALIDATE(<XML filename>)


See Also

COPY, FETCH, SELECT, SET XMLFORMAT, UPDATE, XML, XML_DECODE(), XML_ENCODE(), XML_GATHER(), XML_SCATTER(), XMLCOUNT(), XMLCREATEDTD(), XMLFIRST(), XMLNEXT()


Description

The XMLVALIDATE() function will validate an Extensible Markup Language (XML) file against its Document Type Definition (DTD).


Parameters Required Default Description
<XML filename> Yes None The name of the XML file to validate.


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

Note: The XMLFORMAT setting determines whether Recital creates an accompanying DTD file when creating XML files. A DTD file is only created when XMLFORMAT is set to Recital.


Example

? xmlvalidate("sales.xml")
.T.


Products

Recital, Recital Server