Class mozile.rng.Schema

Object
   |
   +--mozile.rng.Schema

class mozile.rng.Schema

Defined in rng.js


Constructor Summary
mozile.rng.Schema ()
            Represents a RelaxNG schema.
 
Method Summary
 Array getNodes(<String> type, name)
           Returns an array of nodes of the given type.
 String getType()
           Gets the element's localName.
 Document load(<String> filepath, <Boolean> forceLoad)
           Loads an external RNG XML file, adds it to the documents array, and returns it.
 mozile.rng.Validation parse(target)
           Parses a RNG into a hierarchy of RNG nodes.
 mozile.rng.Node parseElement(<Element> element, <mozile.rng.Validation> validation, <Boolean> omitValidation)
           Parses an RNG element into an mozile.rng.Node.
 String toString()
           Returns "[object mozile.rng.Schema]".
 Boolean validate(<Element> element)
           Validates an element against the schema.

Constructor Detail

mozile.rng.Schema

mozile.rng.Schema()

Method Detail

getNodes

Array getNodes(<String> type, name)

getType

String getType()

load

Document load(<String> filepath, <Boolean> forceLoad)

parse

mozile.rng.Validation parse(target)

parseElement

mozile.rng.Node parseElement(<Element> element, <mozile.rng.Validation> validation, <Boolean> omitValidation)

toString

String toString()

validate

Boolean validate(<Element> element)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008