1. 
    var xml = XmlBuilder.Create();
    
    xml.Declaration();
    
    xml.Comment("Someone comment");
    
    xml.Users(XmlBuilder.Section(users => {
        users.Comment("Users");
        users.User(new { Id = 1 }, XmlBuilder.Section(user => {
            user.FirstName("Kiro");
            user.LastName("Zlatnia");
            user.UserName("zlatnia");
            user.Age(50);
            user.Email("kiro@zlatnia.bg");
            user.Phone("089855533");
        }));
    }));
  2. 
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <!--Someone comment-->
    <Users>
        <!--Users-->
        <User Id="1">
            <FirstName>Kiro</FirstName>
            <LastName>Zlatnia</LastName>
            <UserName>zlatnia</UserName>
            <Age>50</Age>
            <Email>kiro@zlatnia.bg</Email>
            <Phone>089855533</Phone>
        </User>
    </Users>