HomeClusterLabs Projects

Refactor: libcrmcommon: Replace xmlNewNode() with xmlNewDocRawNode()

Description

Refactor: libcrmcommon: Replace xmlNewNode() with xmlNewDocRawNode()

Per the libxml2 docs, use of xmlNewNode() is discouraged in favor of
xmlNewDocNode(). Further, entities support is not needed, then
xmlNewDocRawNode() should be used.

https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-tree.html#xmlNewNode

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jul 4 2023, 8:37 PM
Parents
rPa1f18f2d28c2: API: libcrmcommon: xml_top argument of xpath_search() is now const
Branches
Unknown
Tags
Unknown