!(Define) Rewrote XMLDomain, fixed bugs