In the cases where your document needs a correct base URI, use this form
from Ft.Xml.Domlette import NonvalidatingReader
In case you're wondering, there is also a
ValidatingReader that uses the document's
<!DOCTYPE> declaration to find its schema,
and validates the document against the schema. We'll
assume that validation is taken care of elsewhere.
Then, to turn that document into a DOM tree, use one of these methods:
Read the document from a given URI. The
argument specifies the document's location as well
as its base URI.
Read the document from a readable file object
must be the document's base URI.
argument is a string containing the entire
argument must be the
document's base URI.
Each of these reader functions returns a