Function: libxml-parse-xml-region

libxml-parse-xml-region is a function defined in xml.c.

Signature

(libxml-parse-xml-region &optional START END BASE-URL)

Documentation

Parse the region as an XML document and return the parse tree.

If START is nil, it defaults to point-min. If END is nil, it defaults to point-max.

If BASE-URL is non-nil, it is used if and when reporting errors and warnings from the underlying libxml2 library. Currently, errors and warnings from the library are suppressed, so this argument is largely ignored.

If you want comments to be stripped, use the xml-remove-comments function to strip comments before calling this function.

View in manual

Probably introduced at or before Emacs version 24.1.

Source Code

// Defined in /usr/src/emacs/src/xml.c
{
  if (init_libxml2_functions ())
    return parse_region (start, end, base_url, discard_comments, false);
  return Qnil;
}