Serialize node not attributes.