Microdata v0.1.0 Microdata.Document View Source
Microdata.Document is the base struct returned after parsing a microdata document.
Link to this section Summary
Functions
Lookup top-level items in the document with matching types
Link to this section Types
Link to this section Functions
Link to this function
lookup(doc, item_types)
View Source
lookup(Microdata.Document.t(), String.t()) :: [Microdata.Item.t()]
lookup(Microdata.Document.t(), [String.t()]) :: [Microdata.Item.t()]
Lookup top-level items in the document with matching types.
Examples (not a doctest)
iex> Microdata.Document.lookup(doc, “foo”) [%Microdata.Item{types: [“foo”], …}, …]
iex> Microdata.Document.lookup(doc, [“foo”, “bar”]) [
%Microdata.Item{types: ["foo"], ...},
%Microdata.Item{types: ["bar"], ...}, ...
]