Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select processing instructions? #35

Closed
robertvanGilst opened this issue Nov 29, 2017 · 7 comments
Closed

How to select processing instructions? #35

robertvanGilst opened this issue Nov 29, 2017 · 7 comments
Labels
Milestone

Comments

@robertvanGilst
Copy link

I have got a Wix Install file.

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <?define ProductName="My product for ArcGIS 10.2"?>
  <?define ProductVersion="1.3.0.0" ?>
</Wix>

Where I would like to match the define with the ProductName and update the attribute value for that one. How should I select?
I tried with:

Wix/?define/@productname

and

Wix/processing-instruction(define)/@productname

But both fail in the update process.

@sergeyzwezdin
Copy link
Member

@robertvanGilst Is this fragment valid XML document?

@robertvanGilst
Copy link
Author

robertvanGilst commented Nov 30, 2017

Yes, processing instructions are part of the XML Standard

I maybe should have included:
<?xml version="1.0" encoding="UTF-8"?>

It only contains the tags I am interested to update, the rest of the file I have left out.

@sergeyzwezdin
Copy link
Member

Indeed, ok. It is not supported for the moment. I'll take a look

@sergeyzwezdin sergeyzwezdin added this to the 1.3.0 milestone Nov 30, 2017
@robertvanGilst
Copy link
Author

Thank you.

@sergeyzwezdin
Copy link
Member

Thank you for your report.
I just fixed the issue.
You can address elements by index:

Wix/?define[0]/@ProductName

Or by attribute name:

Wix/?define[@ProductName = 'My product for ArcGIS 10.2']/@ProductName

Will be released soon as part of 1.3.0.

@sergeyzwezdin
Copy link
Member

Latest fixes were released to Nuget and VS Marketplace.

@robertvanGilst
Copy link
Author

robertvanGilst commented Dec 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants