Better package name parsing
XML Declaration check