For information on creating well-formed XML documents in the IDE, see the following chapter in the User's Guide:
Developing Applications with NetBeans IDE,