I don't understand what you want to achieve. A checkbox is a control, XML is markup, so unless you have an XML application like XAML or like XHTML which has markup to represent such controls I don't understand how you expect to be able to add a checkbox.
Can you post an example of the XML you have and an example of the XML you want to create?
Martin Honnen --- MVP XML
My blog