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

"No element in the source" when having to deal with namespaces #187

Open
MoonStorm opened this issue Mar 31, 2016 · 0 comments
Open

"No element in the source" when having to deal with namespaces #187

MoonStorm opened this issue Mar 31, 2016 · 0 comments
Labels

Comments

@MoonStorm
Copy link

The original file is a classic app.manifest:

<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
      </requestedPrivileges>
    </security>
  </trustInfo>
  [...]
</assembly>

I am getting an error No element in the source document matches '/_defaultNamespace:assembly/_defaultNamespace:trustInfo' when using the following transformation file:

<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns="urn:schemas-microsoft-com:asm.v1">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="requireAdministrator" uiAccess="true" xdt:Transform="Insert"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

I tried with and without the xmlns attribute inside the transformation file.
Any help would be appreciated. Thanks.

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