I have multiple XSD strings in my Python program, for example.
xsd1 = '''<?xml version...
<xs:schema targetNamespace="...
'''
xsd2 = '''...'''
import xmlschema
schema = xmlschema.XMLSchema([xsd1, xsd2]) # it seems xmlschema does not accept such arguments
# then using schema to validate xml files
The two XSD have different target name spaces. How can I read them into xmlschema and validate xml files?