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:
parent
15a656a77a
commit
8535682dda
1 changed files with 2 additions and 1 deletions
|
@ -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>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue