import xmlschema
#from lxml import etree
#from io import StringIO
import sys

xml_name = sys.argv[1]
#with open(xml_name, 'r') as f:
#    xml = StringIO(f.read())

xsd_name = sys.argv[2]
#with open(xsd_name, 'r') as f:
#    xsd = etree.parse(f.read())

scheme = xmlschema.XMLSchema(xsd_name) #etree.XMLSchema(xsd)
#doc = etree.parse(xml)
if scheme.is_valid(xml_name): #validate(doc):
    print('Valid')
else:
    print('Invalid')


5e80e8da3d363b601abcfb9a3a60d37b16ac78cc
<mask token>

<mask token>
if scheme.is_valid(xml_name):
    print('Valid')
else:
    print('Invalid')

<mask token>
xml_name = sys.argv[1]
xsd_name = sys.argv[2]
scheme = xmlschema.XMLSchema(xsd_name)
if scheme.is_valid(xml_name):
    print('Valid')
else:
    print('Invalid')

import xmlschema
import sys
xml_name = sys.argv[1]
xsd_name = sys.argv[2]
scheme = xmlschema.XMLSchema(xsd_name)
if scheme.is_valid(xml_name):
    print('Valid')
else:
    print('Invalid')

import xmlschema
#from lxml import etree
#from io import StringIO
import sys

xml_name = sys.argv[1]
#with open(xml_name, 'r') as f:
#    xml = StringIO(f.read())

xsd_name = sys.argv[2]
#with open(xsd_name, 'r') as f:
#    xsd = etree.parse(f.read())

scheme = xmlschema.XMLSchema(xsd_name) #etree.XMLSchema(xsd)
#doc = etree.parse(xml)
if scheme.is_valid(xml_name): #validate(doc):
    print('Valid')
else:
    print('Invalid')

