Takes a define xml and pulls out the value level metadata including codelist_id's, defines_id's, and where clause. There is one row per variable expect when there is a where clause, at which point there is one row per value.

xml_to_value_spec(doc)

Arguments

doc

xml document

Value

tibble with the value level information