SOAPType: Creates a SchemaType object

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
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

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

sckott/XMLSchema documentation built on May 29, 2019, 3:46 p.m.