View Source Yex.XmlFragment (y_ex v0.6.3)
A shared type to manage a collection of Y.Xml* Nodes
Summary
Functions
get(xml_fragment, index)
deprecated
The parent that holds this type. Is null if this xml is a top-level XML type.
Types
Functions
@spec children(t()) :: Enumerable.t(Yex.XmlElement.t() | Yex.XmlText.t())
@spec fetch(t(), integer()) :: {:ok, Yex.XmlElement.t() | Yex.XmlText.t()} | :error
@spec fetch(t(), integer()) :: Yex.XmlElement.t() | Yex.XmlText.t()
This function is deprecated. Rename to `fetch/2`.
@spec get(t(), integer()) :: {:ok, Yex.XmlElement.t() | Yex.XmlText.t()} | :error
@spec insert_after( t(), Yex.XmlElement.t() | Yex.XmlText.t(), Yex.XmlElementPrelim.t() | Yex.XmlTextPrelim.t() ) :: :ok | :error
@spec parent(t()) :: Yex.XmlElement.t() | t() | nil
The parent that holds this type. Is null if this xml is a top-level XML type.