以下のoptioncode 09ですべてのノードを見つけてそのノードを削除するには、notepad ++で何を検索するか教えてください。たとえば、私は以下のXMLを検索して最初のエントリを削除し、そのままにしておきたいと思っています。notepad ++ xml node regex検索と置換
空白の値を置き換えるために働く<Vehicle>.*?</Vehicle>
を検索しようとしましたが、ノード全体の09値を検索する基準も追加したいと考えています。 "> 09 <"の文字列値の検索条件を追加することはできますか?ここ
検索:
<Vehicle>
<InvoiceDateTime>2016-03-20T00:00:00</InvoiceDateTime>
<InvoiceChargeCents>63</InvoiceChargeCents>
<OptionCode>09</OptionCode>
<JobEndDateTime>2016-03-19T00:00:00</JobEndDateTime>
<AuthorizationCode />
</Vehicle>
<Vehicle>
<InvoiceDateTime>2016-03-20T00:00:00</InvoiceDateTime>
<InvoiceChargeCents>63</InvoiceChargeCents>
<OptionCode>35</OptionCode>
<JobEndDateTime>2016-03-19T00:00:00</JobEndDateTime>
<AuthorizationCode />
</Vehicle>
戻り、以下のエントリ:
<Vehicle>
<InvoiceDateTime>2016-03-20T00:00:00</InvoiceDateTime>
<InvoiceChargeCents>63</InvoiceChargeCents>
<OptionCode>35</OptionCode>
<JobEndDateTime>2016-03-19T00:00:00</JobEndDateTime>
<AuthorizationCode />
</Vehicle>
恐らく、> 09 <を上回らないブロックが複数ある場合でも、これは完璧に動作します。ご協力ありがとうございます! – TPG
回答ありがとう! – TPG