SP.FieldCollection.schemaXml property (sp.js)

Specifies the XML schema of the collection of fields.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.FieldCollection.get_schemaXml ()

Return value

Type: String

The XML schema.

Remarks

It must not be null. It must not be empty. It must be an XML document that conforms to the FieldDefinitions type.

A field definition describes the structure and format of a field that is used within a list or content type.

REST resource endpoint

See FieldCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/fields/schemaXml

HTTP requests

This resource supports the following HTTP commands:

  • GET

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/fields/schemaXml