How do I validate against multiple xsd schemas using lxml?
问题 I'm writing a unit test that validates sitemap xml I generate by fetching its xsd schema and validating using python's lxml library: Here's some metadata on my root element: xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap