77Primitive types
88***************
99
10- Field of a primitive type marked as :py:func: `pydantic_xml.element ` is bound to a sub-element text.
11- Parameter ``tag `` is used to declare a sub-element tag from which the text is extracted .
12- If it is omitted field name is used (respecting ``pydantic `` field aliases).
10+ A field of a primitive type marked as :py:func: `pydantic_xml.element ` is bound to the sub-element text.
11+ Parameter ``tag `` is used to declare the sub-element tag to which the field is bound .
12+ If it is omitted the field name is used (respecting ``pydantic `` field aliases).
1313
1414.. grid :: 2
1515 :gutter: 2
@@ -45,12 +45,12 @@ If it is omitted field name is used (respecting ``pydantic`` field aliases).
4545Model types
4646***********
4747
48- Field of a model type marked as :py:func: `pydantic_xml.element ` is bound to a sub-element.
49- Then the sub-element is used as a root for that sub-model. For more information
48+ A field of a model type marked as :py:func: `pydantic_xml.element ` is bound to a sub-element.
49+ Then the sub-element is used as the root for that sub-model. For more information
5050see :ref: `model data binding <pages/data-binding/models:model >`.
5151Parameter ``tag `` is used to declare a sub-element tag to which the sub-model is bound.
5252If it is omitted the sub-model ``tag `` setting is used.
53- If it is omitted too field name is used (respecting ``pydantic `` field aliases).
53+ If it is omitted too the field name is used (respecting ``pydantic `` field aliases).
5454So the order is the following: element tag, model tag, field alias, field name.
5555
5656.. grid :: 2
@@ -87,7 +87,7 @@ So the order is the following: element tag, model tag, field alias, field name.
8787Namespaces
8888**********
8989
90- You can declare an element namespace passing parameters ``ns `` and ``nsmap `` to :py:func: `pydantic_xml.element `
90+ You can declare the element namespace passing parameters ``ns `` and ``nsmap `` to :py:func: `pydantic_xml.element `
9191where ``ns `` is the element namespace alias and ``nsmap `` is a namespace mapping:
9292
9393.. grid :: 2
@@ -120,7 +120,7 @@ where ``ns`` is the element namespace alias and ``nsmap`` is a namespace mapping
120120 :start-after: json-start
121121 :end-before: json-end
122122
123- Namespace and namespace mapping can be declared for a model. In that case all fields
123+ The namespace and namespace mapping can be declared for a model. In that case all fields
124124:ref: `except attributes <pages/data-binding/attributes:namespace inheritance >` inherit them:
125125
126126.. grid :: 2
@@ -154,8 +154,8 @@ Namespace and namespace mapping can be declared for a model. In that case all fi
154154 :end-before: json-end
155155
156156
157- Namespace and namespace mapping can be also applied to model types passing ``ns `` and ``nsmap ``
158- to :py:func: `pydantic_xml.element `. If they are omitted model namespace and namespace mapping is used:
157+ The namespace and namespace mapping can be also applied to model types passing ``ns `` and ``nsmap ``
158+ to :py:func: `pydantic_xml.element `. If they are omitted the model namespace and namespace mapping is used:
159159
160160.. grid :: 2
161161 :gutter: 2
@@ -198,7 +198,7 @@ Strict (default)
198198
199199The element to which a field will be bound is searched sequentially one by one (without skipping unknown elements).
200200If the tag of a next element doesn't match the field tag that field is considered unbound.
201- This mode is used when strong document validation is required. If you parse a large document it is the best
201+ This mode is used when the strong document validation is required. If you parse a large document it is the best
202202choice because it works in predictable time since it doesn't require any look-ahead operations.
203203
204204.. grid :: 2
@@ -212,7 +212,7 @@ choice because it works in predictable time since it doesn't require any look-ah
212212 :end-before: model-end
213213
214214 .. error ::
215- code raises an exception because of incorrect field order
215+ code raises an exception because of the incorrect field order
216216
217217 .. grid-item-card :: Document
218218
@@ -239,7 +239,7 @@ Ordered
239239.......
240240
241241The element to which a field will be bound is searched sequentially skipping unknown elements.
242- If the tag of a next element doesn't match the field tag that element is skipped and the search continues.
242+ If the tag of the next element doesn't match the field tag that element is skipped and the search continues.
243243This mode is used when the elements order matters but unexpected (or irrelevant) elements could appear in a document.
244244
245245.. grid :: 2
@@ -282,7 +282,7 @@ This mode is used when the elements order matters but unexpected (or irrelevant)
282282 field2: str = element(tag = ' element2' )
283283 field3: str = element(tag = ' element1' )
284284
285- will fail for the following document:
285+ fails for the following document:
286286
287287 .. code-block :: xml
288288
0 commit comments