8.18
top
← prev up next →

XML: NamespacesπŸ”— i

This package extends the XML reader to extract namespace information from XML elements and attributes.

(require xml/ns ) package: xmlns

procedure

( xml-expand-names doc)document?

doc:document?
Returns a copy of doc with chaperones providing namespace information. Element and attribute names are replaced with the local part.

procedure

[ namespaces])content/c
content:content/c
namespaces :
(or/c string? #f))
= (hasheq #f#f)
Returns a copy of content with chaperones providing namespace information. Element and attribute names are replaced with the local part. namespaces is a hash mapping name prefixes to namespace URIs.

procedure

( attribute-name-prefix att)(or/c symbol? #f)

Returns the namespace part, if any, of att’s name.

procedure

( attribute-namespace att)(or/c string? #f)

Returns the resolved namespace, if any, of att.

procedure

( element-name-prefix elt)(or/c symbol? #f)

elt:element?
Returns the namespace part, if any, of elt’s name.

procedure

( element-namespace elt)(or/c string? #f)

elt:element?
Returns the resolved namespace, if any, of elt.

struct

#:extra-constructor-namemake-exn:fail:xmlns)
element:element?
Raised for errors when expanding element and attribute names.

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /