SOAPType: Creates a SchemaType object

SOAPTypeR Documentation

Creates a SchemaType object

Description

This is a constructor function for filling in the general/common details of the SchemaType-class objects.

Usage

SchemaType(name, ns = "", nsuri = "", namespaceDefs = list(), counts = numeric(),
          obj = new("SchemaTypeReference"), targetNamespace = "")

Arguments

name

the name of the schema type (i.e. of the type or element), usually the value of the name attribute

ns

the namespace prefix from the XML type

nsuri

the namespace URI

namespaceDefs

the namespace definitions, i.e. prefix = URI values in effect for the XML element. This allows us to use and resolve the regular XSD schema, etc. URIs

counts

a vector giving the minOccurs and maxOccurs values for the type. See getElementCount which is a non-exported convenience function.

obj

the object whose slots are to be filled in. The user can pass this when creating an instance of a class derived from SOAPType.

targetNamespace

a string providing the value of the targetNamespace attribute of the schema being processed.

Value

The value obj with slots updated.

Author(s)

Duncan Temple Lang

See Also

SchemaType-class processSchemaTypes readSchema

Examples

  SchemaType("foo", count = c(1, Inf))

omegahat/XMLSchema documentation built on Jan. 17, 2024, 7:08 p.m.