This xml module is for compatibility with ejabberd.
Some replacements to make in ejabberd source code to work with exmpp: - {xmlelement, _, _, SubEls} = Stanza
+ SubEls = exmpp_xml:get_child_elements(Stanza)
- {xmlelement, "presence", [{"type", "unavailable"}], []}
+ exmpp_presence:unavailable()
| append_subtags/2 | Deprecated for exmpp_xml:append_children/1. |
| crypt/1 | |
| element_to_string/1 | Deprecated for exmpp_xml:document_to_list/1. |
| get_attr/2 | |
| get_attr_s/2 | Deprecated for exmpp_xml:get_attribute_from_list_as_list/3. |
| get_cdata/1 | Deprecated for exmpp_xml:get_cdata_from_list_as_list/1,
exmpp_xml:get_cdata_as_list/1. |
| get_path_s/2 | Deprecated for exmpp_presence:get_show/1. |
| get_subtag/2 | Deprecated for exmpp_xml:get_element/2. |
| get_subtag_cdata/2 | Deprecated for exmpp_xml:get_cdata/1,
exmpp_xml:get_cdata_as_list/1. |
| get_tag_attr/2 | Deprecated for exmpp_xml:get_attribute_as_binary/3. |
| get_tag_attr_s/2 | Deprecated for exmpp_xml:get_attribute_as_list/3. |
| get_tag_cdata/1 | Deprecated for exmpp_xml:get_cdata/1. |
| make_text_node/1 | |
| remove_cdata/1 | Deprecated for exmpp_xml:get_child_elements/1. |
| replace_tag_attr/3 | Deprecated for exmpp_stanza:set_lang/2 and others. |
append_subtags(Stanza, SubEls) -> any()
Deprecated for exmpp_xml:append_children/1.
- xml:append_subtags(Stanza, SubEls) + exmpp_xml:append_children(Stanza, SubEls)
crypt(S) -> any()
element_to_string(El) -> any()
Deprecated for exmpp_xml:document_to_list/1.
- xml:element_to_string(El) + exmpp_xml:document_to_list(El)
get_attr(AttrName, Attrs) -> any()
get_attr_s(AttrName, Attrs) -> any()
Deprecated for exmpp_xml:get_attribute_from_list_as_list/3.
- get_attr_s(AttrName, Attrs) + exmpp_xml:get_attribute_from_list_as_list(Attrs, AttrName, "")
- xml:get_attr_s("to", Attrs)
+ exmpp_stanza:get_recipient(Stanza)
Deprecated for proplists:get_value/3.
- xml:get_attr_s("username", KeyVals)
+ proplists:get_value("username", KeyVals, "")
Deprecated for exmpp_stream:get_lang/1.
- xml:get_attr_s("xml:lang", Attrs)
+ exmpp_stream:get_lang(Stanza)
Deprecated for exmpp_stream:get_version/1.
- xml:get_attr_s("version", Attrs) of
+ exmpp_stream:get_version(Stanza)
Deprecated for exmpp_stanza:get_id_from_attrs/1.
- xml:get_attr_s("id", Attrs)
+ exmpp_stanza:get_id_from_attrs(Attrs)
get_cdata(L) -> any()
Deprecated for exmpp_xml:get_cdata_from_list_as_list/1,
exmpp_xml:get_cdata_as_list/1.
- xml:get_cdata(Els) + exmpp_xml:get_cdata_from_list_as_list(Els)
- xml:get_cdata(Els) + exmpp_xml:get_cdata_as_list(El)
get_path_s(El, Path) -> any()
Deprecated for exmpp_presence:get_show/1.
- xml:get_path_s(Stanza, [{elem, "show"}, cdata])
+ exmpp_presence:get_show(Stanza)
get_subtag(El, Name) -> any()
Deprecated for exmpp_xml:get_element/2.
- xml:get_subtag(El, "x") + exmpp_xml:get_element(El, x)
- xml:get_subtag(Packet, "status") + exmpp_presence:get_status(Packet)
get_subtag_cdata(Tag, Name) -> any()
Deprecated for exmpp_xml:get_cdata/1,
exmpp_xml:get_cdata_as_list/1.
- xml:get_subtag_cdata(Packet, "body") + exmpp_xml:get_cdata_as_list(exmpp_xml:get_element(Packet, 'body'))
get_tag_attr(AttrName, Xmlel) -> any()
Deprecated for exmpp_xml:get_attribute_as_binary/3.
- xml:get_tag_attr("affiliation", Item)
+ exmpp_xml:get_attribute_as_binary(Item, 'affiliation', false)
get_tag_attr_s(AttrName, El) -> any()
Deprecated for exmpp_xml:get_attribute_as_list/3.
- xml:get_tag_attr_s("node", SubEl)
+ exmpp_xml:get_attribute_as_list(SubEl, 'node', "")
get_tag_cdata(X1) -> any()
Deprecated for exmpp_xml:get_cdata/1.
- xml:get_tag_cdata(El) + exmpp_xml:get_cdata(El)
make_text_node(CData) -> any()
remove_cdata(L) -> any()
Deprecated for exmpp_xml:get_child_elements/1.
- xml:remove_cdata(Els) + exmpp_xml:get_child_elements(SubEl)
replace_tag_attr(Attr, Value, El) -> any()
Deprecated for exmpp_stanza:set_lang/2 and others.
- xml:replace_tag_attr("xml:lang", Lang, El)
+ exmpp_stanza:set_lang(El, Lang)
Generated by EDoc, Feb 19 2012, 12:53:54.