diff options
| author | Xin LI <delphij@FreeBSD.org> | 2022-03-28 05:19:28 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2022-03-28 05:19:28 +0000 |
| commit | 45916e7c91ce4e8b6dd5ae9ade8349f51c97d417 (patch) | |
| tree | 94c471409dd21189f144836aba26d35185a79072 /doc/reference.html | |
| parent | d1b143ee9a5c249312ffa20988d3d91830fab7eb (diff) | |
Diffstat (limited to 'doc/reference.html')
| -rw-r--r-- | doc/reference.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/reference.html b/doc/reference.html index 26db5a635479..87ace02d456e 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -18,6 +18,7 @@ Copyright (c) 2017 Jakub Wilk <jwilk@jwilk.net> Copyright (c) 2021 Tomas Korbar <tkorbar@redhat.com> Copyright (c) 2021 Nicolas Cavallari <nicolas.cavallari@green-communications.fr> + Copyright (c) 2022 Thijs Schreijer <thijs@thijsschreijer.nl> Licensed under the MIT license: Permission is hereby granted, free of charge, to any person obtaining @@ -49,7 +50,7 @@ <div> <h1> The Expat XML Parser - <small>Release 2.4.6</small> + <small>Release 2.4.7</small> </h1> </div> <div class="content"> @@ -974,6 +975,14 @@ the local part will be concatenated without any separator - this is intended to support RDF processors. It is a programming error to use the null separator with <a href= "#XML_SetReturnNSTriplet">namespace triplets</a>.</div> +<p><strong>Note:</strong> +Expat does not validate namespace URIs (beyond encoding) +against RFC 3986 today (and is not required to do so with regard to +the XML 1.0 namespaces specification) but it may start doing that +in future releases. Before that, an application using Expat must +be ready to receive namespace URIs containing non-URI characters. +</p> + <h4 id="XML_ParserCreate_MM">XML_ParserCreate_MM</h4> <pre class="fcndec"> XML_Parser XMLCALL @@ -1808,10 +1817,11 @@ struct XML_cp { </pre> <p>Sets a handler for element declarations in a DTD. The handler gets called with the name of the element in the declaration and a pointer -to a structure that contains the element model. It is the -application's responsibility to free this data structure using -<code><a href="#XML_FreeContentModel" ->XML_FreeContentModel</a></code>.</p> +to a structure that contains the element model. It's the user code's +responsibility to free model when finished with it. See <code> +<a href="#XML_FreeContentModel">XML_FreeContentModel</a></code>. +There is no need to free the model from the handler, it can be kept +around and freed at a later stage.</p> <p>The <code>model</code> argument is the root of a tree of <code>XML_Content</code> nodes. If <code>type</code> equals |
