1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

doc: Mention how to remove namespaces in xml->sxml.

* doc/ref/sxml.texi (Reading and Writing XML): Document behavior of #f
namespace prefix.

This documents behavior discussed in
https://lists.gnu.org/archive/html/guile-user/2024-07/msg00013.html.
This commit is contained in:
Richard Sent 2024-07-22 20:02:40 -04:00 committed by Arne Babenhauserheide
parent 15a656a77a
commit 8535682dda

View file

@ -91,7 +91,8 @@ All namespaces in the XML document must be declared, via @code{xmlns}
attributes. SXML elements built from non-default namespaces will have
their tags prefixed with their URI. Users can specify custom prefixes
for certain namespaces with the @code{#:namespaces} keyword argument to
@code{xml->sxml}.
@code{xml->sxml}. A namespace can be removed by using a @code{#f} custom
prefix.
@example
(xml->sxml "<foo xmlns=\"http://example.org/ns1\">text</foo>")