_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.