Skip to content

Commit

Permalink
add note why validate=False when parsing undocumented elements
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Dec 1, 2024
1 parent a85ea4c commit 7286d09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/working_with_kml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ And register the new element with the KML Document object:
The CascadingStyle object is now part of the KML document and can be accessed like any
other element.
When parsing the document we have to skip the validation as the ``gx:CascadingStyle`` is
not in the XSD Schema.

.. note::
When parsing the document we have to skip the validation by passing ``validate=False``
to ``KML.parse`` as the ``gx:CascadingStyle`` is not in the XSD Schema.

Create a new KML object and confirm that the new element is parsed correctly:

Expand Down

0 comments on commit 7286d09

Please sign in to comment.