Discover the CustomXmlPartCollection Count property to easily retrieve the total number of elements in your XML collection for enhanced data management....xmlPartContent = "<root><text>Hello world!</text></root>" ; CustomXmlPart...SetMapping ( xmlPart , "/root[1]/text[1]" , string . Empty ); doc...