correcte Capture to capture in the xml as well as in code