Summary
An xml being referenced may designate 1 or more Namespaces used. This can be difficult to reference if you are attempting to look for a specific element but are unsure of the Namespace used.
Description
Using a wild card (*) along with specifying local-name will return a result regardless of namespace.
Example
This xpath will specify /Project/PropertyGroup/IncludePath from the Sample XML, regardless of the xml namespace given:
/*[local-name()='Project']/*[local-name()='PropertyGroup']/*[local-name()='IncludePath']
Sample XML:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
PropertyGroup>
<IncludePath>SampleValue</IncludePath>
</PropertyGroup>
</Project>
Additional Info
It is worth noting, additional xpath syntax may be needed if the elements appear more than once.
Here is some info on namespaces:
Related Articles
How to Use the Import Service in Web Configurator 48Number of Views Install the Flexera KRM Agent using a custom namespace 12Number of Views How to configure the beacon to use a different name or alias than its host name 124Number of Views Authoring an Installation that Always Installs Regardless of User Privileges 6Number of Views Always Overwrite Files Regardless of Version, Date, and Time Stamp 18Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago