Hi,
How I can find <?something ?stuff?
XML:
<Wix>
<?define UpgradeCode="{f oobar-quux-xyzzy}"?>
<?define Manufacturer="C ompany"?>
<!-- update this ALWAYS -->
<?define PackageCode="RE PLACE"?>
</Wix>
How to match that REPLACE with XPath? Or even better: find only define
and PackageCode
Doesn't work:
/Wix[processing-instruction('de fine[@PackageCode='R EPLACE']')]
/Wix[processing-instruction('de fine')/[@PackageCode='R EPLACE']/
@PackageCode]
/Wix[processing-instruction('de fine')/[@PackageCode='R EPLACE']]/
@PackageCode
/Wix[processing-instruction('de fine[@PackageCode='R EPLACE']')/]/
@PackageCode
Works:
/Wix[processing-instruction('de fine')[3]]
But PackageCode isn't necessary always third.
How I can find <?something ?stuff?
XML:
<Wix>
<?define UpgradeCode="{f oobar-quux-xyzzy}"?>
<?define Manufacturer="C ompany"?>
<!-- update this ALWAYS -->
<?define PackageCode="RE PLACE"?>
</Wix>
How to match that REPLACE with XPath? Or even better: find only define
and PackageCode
Doesn't work:
/Wix[processing-instruction('de fine[@PackageCode='R EPLACE']')]
/Wix[processing-instruction('de fine')/[@PackageCode='R EPLACE']/
@PackageCode]
/Wix[processing-instruction('de fine')/[@PackageCode='R EPLACE']]/
@PackageCode
/Wix[processing-instruction('de fine[@PackageCode='R EPLACE']')/]/
@PackageCode
Works:
/Wix[processing-instruction('de fine')[3]]
But PackageCode isn't necessary always third.
Comment