Well, in Nianxi's case, it's not a demon inside thing, not much really. The demon attack damaged her soul itself, taking away her ability to use magic, and creating a schism in her personality. Xiandra is the demonic version of Nianxi's repressed personality. Since they share the same body, neither of them is stronger than one another, they do, however, have different fighting styles.