#NEWLINE# def validate_url_with( url , schema_file ) : #NEWLINE# #INDENT# schema = etree . XMLSchema ( file = open ( schema_file ) ) #NEWLINE# doc = etree . parse ( urlopen ( url ) ) #NEWLINE# return schema . validate ( doc )