Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<hello></hello>XMLWriter を使用して MySQL データベースの XML 出力を作成していますが、これを行うことでこれを防ぐ方法を知りたいです。<hello>nil</hello>
<hello></hello>
<hello>nil</hello>
したがって、基本的に "" を "nil" に置き換えます。
<hello></hello>XML で空のノードを示すのに適しています。他の方法です<hello />。で置き換えるとnil、空のノードではなくなります。テキスト content を持つノードnilです。
<hello />
nil
その置換を行うと、XML 内のデータの意味が変わります。これはひどい考えです。