Xianxia stories often contain the following elements:
1> Cultivation of Qi:
Qi is a humor-esque substance which is generally absorbed from the environment and stored in the Dan Tian which in these stories is a virtual space near the navel. One starts with no Qi, then accumulates enough to fill the Dan Tian with gaseous Qi which is progressively liquidified and then solidified as one improves in level. Past the point of solidification and a few further compressions the thing usually develops into an independent universe inside the owner where stars, planets, life etc. may be spontaneously created / born or inserted from outside.
2> Elemental Travel:
Travel through the soil, through water, as wind etc.
3> Pill refining:
Various plant and animal parts are put in a cauldron, special hand gestures are made, Qi is infused into the cauldron and at the end, if successful, everything automatically congeals into a spherical pill without the need for molds etc. Pills have levels according to their "Qi" and "Medicinal Purity" and if these are sufficiently high, can even be "alive" or "sentient".
Everything is handwaved away inside the story world as "Daoism" but did historical Daoist/Buddhist scriptures or even folklore contain such elements, especially the stomach-universe and the sentient pills?
Edit: I am trying to trace the evolution of these ideas as presented in Xianxia. Names of and / or links to the earliest known works that contain any of these elements in the sense described above are also part of the "references" I'm looking for.