Did you know ... Search Documentation:
Pack prolog_library_collection -- prolog/xml_ext.pl
PublicShow source

Extends the support for working with XML provided by the SWI-Prolog standard library.

 call_on_xml(+In:istream, +Names:list(atom), :Goal_1) is det
Call Goal_1 on an XML stream, where the argument supplied to Goal_1 is a subtree that starts with an element called Name.
 Char(+Version:compound)//
 Char(+Version:compound, ?Code:code)//
An XML Character is an atomic unit of text specified by ISO/IEC 10646.

XML 1.0

Char ::= #x9                // Horizontal tab
       | #xA                // Line feed
       | #xD                // Carriage return
       | [#x20-#xD7FF]      // Space, punctuation, numbers, letters
       | [#xE000-#xFFFD]
       | [#x10000-#x10FFFF]

Avoid comapatibility characters [Unicode, section 2.3]. Avoid the following characters (control characters, permanently undefined Unicode characters):

[#x7F-#x84] // Delete, ...
[#x86-#x9F]
[#xFDD0-#xFDEF],
[#x1FFFE-#x1FFFF]
[#x2FFFE-#x2FFFF]
[#x3FFFE-#x3FFFF]
[#x4FFFE-#x4FFFF]
[#x5FFFE-#x5FFFF]
[#x6FFFE-#x6FFFF]
[#x7FFFE-#x7FFFF]
[#x8FFFE-#x8FFFF]
[#x9FFFE-#x9FFFF]
[#xAFFFE-#xAFFFF]
[#xBFFFE-#xBFFFF]
[#xCFFFE-#xCFFFF]
[#xDFFFE-#xDFFFF]
[#xEFFFE-#xEFFFF]
[#xFFFFE-#xFFFFF]
[#x10FFFE-#x10FFFF]

XML 1.1

Char ::= [#x1-#xD7FF]
       | [#xE000-#xFFFD]
       | [#x10000-#x10FFFF]
/* any Unicode character, excluding the surrogate blocks,
   FFFE, and FFFF. */
Arguments:
Version- is either `version(1,0)' for XML 1.0 or `version(1,1)' for XML 1.1.
 load_xml(+Source, -Dom:list(compound)) is det
 xml_encoding(+In:istream, -Encoding:atom) is semidet
 xml_file_encoding(+File:atom, -Encoding:atom) is semidet

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 Char(Arg1, Arg2, Arg3, Arg4)