9.2 XML Quote primitives
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog SGML/XML parser
Writing markup
XML Quote primitives
xml_quote_attribute/3
xml_quote_attribute/2
xml_quote_cdata/3
xml_quote_cdata/2
xml_name/2
xml_name/1
Availability:
:- use_module(
library(sgml)
).
(can be autoloaded)
xml_quote_attribute
(
+In, -Quoted, +Encoding
)
Map the characters that may not appear in XML attributes to entities. Currently these are
<>&"
.
4
Older versions also mapped
’
to
'
.
Characters that cannot represented in
Encoding
are mapped to XML character entities.