{contentname} のような単語を含むテンプレート xml ファイルを作成しました。そのようなタグを自分の値に置き換える必要があります。そのような単語を検索し、vb.net でファイル処理を使用して置き換える方法を教えてください。私の xml テンプレート ファイルは次のようになります。
<!-- BEGIN: main -->
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelSearchRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05OTA_HotelSearchRQ.xsd" EchoToken="{EchoToken}" Target="{Target}" Version="1.006" PrimaryLangID="{PrimaryLangId}" MaxResponses="{MaxResponses}">
<POS>
<!-- BEGIN:Source -->
<Source>
<RequestorID ID="{affiliateId}" MessagePassword="{MessagePassword}" />
</Source>
<!-- END:Source -->
</POS>
<Criteria <!-- BEGIN:AvailableOnlyIndicator -->AvailableOnlyIndicator=" {AvailableOnlyIndicator}"<!-- END:AvailableOnlyIndicator -->>
<Criterion>