Fixed handling of default namespace; Don't require Document->attributes