Difference between revisions of "XMLVALIDATE()"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 11: | Line 11: | ||
The XMLVALIDATE() function will validate an Extensible Markup Language (XML) file against its Document Type Definition (DTD). | The XMLVALIDATE() function will validate an Extensible Markup Language (XML) file against its Document Type Definition (DTD). | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!Parameters||Required||Default||Description | !Parameters||Required||Default||Description | ||
|- | |- | ||
− | |<XML filename>||valign=top|Yes||valign=top|None||The name of the XML file to validate. | + | |<XML filename>||valign="top"|Yes||valign="top"|None||The name of the XML file to validate. |
|- | |- | ||
|} | |} |
Revision as of 08:51, 5 February 2013
Contents
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 Lianja creates an accompanying DTD file when creating XML files. A DTD file is only created when XMLFORMAT is set to Lianja.
Example
? xmlvalidate("sales.xml") .T.