私はC#で作業しています。取得したxmlシリアル化を実行しようとしていますxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
がxmlns:xsd="http://www.w3.org/2001/XMLSchema"
、ルート要素で、別の要素でもそれが必要です。
私がそれを必要とする理由は、xml を文字列として取得し、<Header>
要素に対してのみ xml シリアル化を行う必要があるためです。
<?xml version="1.0" encoding="utf-8"?>
<Movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
....
</Header
<Title>Starship Troopers</Title>
<Rating>6.9</Rating>
<ReleaseDate>1997-11-07T00:00:00</ReleaseDate>
</Movie>