# Yahoo! UI Library

### dataschema 3.0.0

Yahoo! UI Library > dataschema > DataSchema.XML
Search:
Filters Show Private Show Protected Show Deprecated

## `static` Class DataSchema.XML - extends DataSchema.Base

XML subclass for the DataSchema Utility.

### Methods

#### _getLocationValue

`protected static Object _getLocationValue ( field , context )`
Get an XPath-specified value for a given field from an XML node or document.

Parameters:
  `field <String | Object>` Field definition.
  `context <Object>` XML node or document to search within.

Returns: `Object`
  Data value or null.

#### _parseMeta

`protected static Object _parseMeta ( xmldoc_in , data_out )`
Parses results data according to schema

Parameters:
  `xmldoc_in <Object>` XML document parse.
  `data_out <Object>` In-progress schema-parsed data to update.

Returns: `Object`
  Schema-parsed data.

#### _parseResults

`protected static Object _parseResults ( schema , xmldoc_in , data_out )`
Schema-parsed list of results from full data

Parameters:
  `schema <Object>` Schema to parse against.
  `xmldoc_in <Object>` XML document parse.
  `data_out <Object>` In-progress schema-parsed data to update.

Returns: `Object`
  Schema-parsed data.

#### apply

`static Object apply ( schema , data )`
Applies a given schema to given XML data.

Parameters:
  `schema <Object>` Schema to apply.
  `data <XMLDoc>` XML document.

Returns: `Object`
  Schema-parsed data.

#### Methods inherited from DataSchema.Base:

`parse`

Copyright © 2009 Yahoo! Inc. All rights reserved.