- Rename XMLSchemaTestCase to XsdValidatorTestCase
- Add casepath() helper
- Modify TestResources: derive from TestCase and use casepath()
- Split test_package.py into 3 modules (added test_etree.py and
test_memory.py)
- Update .tox with new environments 'package' and 'memory'
- Replace test_package with test_etree into test_all.py script
- Modify XsdValidatorTestCase.check_schema() to use xs prefix for
XSD namespace and no namespace as targetNamespace for a fast
reuse of common and user sample cases
- Added XsdAssertionsFacet: based on MutableSequence like XsdPatternsFacet
- Fixed a typo in XsdPatternsFacet.__setitem__
- Started development of release v1.0.7
- Modified CHANGELOG.rst
- Lookup functions rewritten and bound to global names for serialization
- Dependancy: elementpath minimal version now is 1.0.10
- cases/features/decoding/ renamed to cases/features/decoder/
- decoder/decoder.xsd renamed to decoder/simple-types.xsd
- Use namespace xmlns:xst="http://xmlschema.test/test/" for all
cases/features tests
- Added XMLSchemaTestCase base class for tests/ subpackage
- Wrote a get_testfiles() functions for tests/ subpackage in order
to reduce redundant code in other test scripts
- Added tests for encoding of simpleType's lists
Bug #58:
- Added a file for test circular model detection
Integrating defusedxml:
- defusedxml.ElementTree API loaded in etree.py
- safe load with defusedxml only for network resources
- A fix for validating empty groups without errors
- TODO: raw decoding by an explicit option (or validation='skip')
A fix for substitution group building in globals_.py (that was generatingi
an error with the XSLT schema).
An update of setup.py to include grouped test cases.
- Argument --extra substituted with -s/--skip-extra that doesn't
change the old behaviour
- Fixed a typo for XsdSimpleType.check_facets() (min_inclusive)
- Added a fix for lxml.etree._Comment parsing in XsdElement.iter_decode()
- now parses also WSDL-SOAP original schema
xmlschema/schema.py module:
- more XSD compiliant imports and includes
- added 'locations' argument to schema class init
- improved schema location hints
- revised documentation with more autodoc
- schema class code cleaning
- schema class creation is now based on a metaclass
xmlschema/resources.py module:
- added iter_schema_location_hints
- fetch_schema code cleaned
- removed old functions for retrieving XSI attributes
xmlschema/exceptions.py module:
- added index and expected attributes to XMLSchemaChildrenValidationError
Updated docs using more autodocs
Added requirements-dev.txt
* The `set_context` method has been removed because is not always
applicable starting from schema;
* Now all identity constraints paths are selected from instances;
* XPath select functions now have a name related to the selection scope;
* Added `etree_getpath` function in etree.py;
* Added `maxunicode` checks in codepoints.py (issue #32, Python 2.7
compiled without --enable-unicode=ucs4) for load only UCS-2 code points.
- Fixing memory usage issue #32
- Removed the old UnicodeSubset class
- Developing class CodePointSet renamed to UnicodeSubset
- Added XMLSchemaChildrenValidationError to package imports
- Fixed a typo in test_all.sh script
- Switched to version 0.9.16
- Fixed issues #28 and #29
- Code cleaning
- Created a "validators" subpackage that includes schemas, xsd global
maps and all the XSD components
- Added "prefixed_name" property to XsdComponent class
* new file: xmlschema/components/constraints.py
* parsed xs:unique, xs:key and xs:keyref and subcomponents
* added '|' as reference delimiter in xpath.py tokenizer
* improved XPathParser to check operator: the base class
admits all operators, subclasses can restricts overriding
NOT_ALLOWED_OPERATORS class attribute.
* fixed a bug in simpleContent restriction parsing for attributes
* code cleaning for schemas and resources
* XMLSchema's 'uri' attribute changed to 'url'
* created fetch_resource(), normalize_url() and get_xml_root() in
resources.py, in order to start an improvement of XML parsing
* Added ElementData namedtuple to represent Element
decoded or encoded data.
* Fixed a bug in qname.reference_to_qname() that mapped
every local name to target namespace.
* Documentation extended
* Docuemtation examples now are tested with doctest
* Improved tests for XPath, validation and decoding
* The collection.xsd example schema has been extended
* Removed the exception XMLSchemaBaseValidatorError
* Now XMLSchemaValidationError is the parent class of
decode/encode exceptions