DOMDocument->relaxNGValidate()

(no version information, might be only in CVS)

DOMDocument->relaxNGValidate() --  Performs relaxNG validation on the document

说明

class DOMDocument {

bool relaxNGValidate ( string filename )

}

Performs relaxNG validation on the document based on the given RNG schema.

参数

filename

The RNG file.

返回值

如果成功则返回 TRUE,失败则返回 FALSE


add a note add a note User Contributed Notes
gem at rellim dot com
13-Oct-2004 08:36
Creating an .rng file by hand is a PITA.  Trang is a command line
java tool to save the day.  Trang will read a sampling of your .xml and
create a .rng for you.

Get it here: http://thaiopensource.com/relaxng/trang.html