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.
<node></node>xml.domを使用してxmlドキュメントを解析しており、node.toxml()を使用して空のタグ(など)を保持したいのですが、代わりに<node />...を返します。自己終了タグを回避し、元のノードをそのまま保持するにはどうすればよいですか。 xmlで書かれましたか?
<node></node>
<node />