Patrick/Mack247, I have a similar situation where I need InfoPath to return the XML structure. Wrapping the XmlElement inside a custom type didn't seem to have any effect (still no child elements). Mack247, I assume that when you said you replaced your XmlElement with a custom type that you mean you replaced with another ...