Step 1: Understanding the Concept
Separate the variables so that \(x\) terms are with \(dx\) and \(y\) terms with \(dy\).
Step 2: Separate
Divide \((1+x)y\,dx+(1-y)x\,dy=0\) by \(xy\): \(\dfrac{1+x}{x}dx+\dfrac{1-y}{y}dy=0\).
Step 3: Split
\(\left(\dfrac1x+1\right)dx+\left(\dfrac1y-1\right)dy=0\).
Step 4: Integrate
\(\log x+x+\log y-y=C\), that is \(\log(xy)+x-y=C\).
Final Answer:
The solution is \(\log(xy)+x-y=C\).
\[ \boxed{\text{(D) }\log (xy)+x-y=C} \]