Fix massive __DIR__ bug. :(

Also added support for namespaces in XML tags and CSS selectors.