See the documentation for ConsumeBody and ConsumeChild.
Note that this property only affects consumption. Typically if you are working with a simple (non-subgraph) node that contains some ports, you will also want to set the GeneratesPortsAsChildElements property to true and make sure a transformer is registered for the port type(s), so that child elements are generated for the ports.