dpa-gmbh / metadata-mapper

http://dpa-gmbh.github.io/metadata-mapper/
Other
5 stars 1 forks source link

Improve handling of different XPath result types #9

Closed ola-github closed 9 years ago

ola-github commented 9 years ago

Currently three types of xpath return values are supported: node, list of node, strings

Users have to take care of these return value types when specifying xpath expressions in the mapping config. handle this in the code instead.

See MetadataProcessingInfo#selectXPathValues

ola-github commented 9 years ago

The underlying XPath API does not support to return either a node or a primitive for a single path expression. You always have to declare the expected return value.