Last active
April 11, 2017 17:19
-
-
Save motowilliams/57d31901ee78b8bc1df03fa896af547a to your computer and use it in GitHub Desktop.
MSDeploy Match XPath
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> | |
<session-factory> | |
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> | |
<property name="connection.connection_string">local-connection-string</property> | |
<property name="show_sql">false</property> | |
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property> | |
<property name="adonet.batch_size">100</property> | |
</session-factory> | |
</hibernate-configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: An XML exception occurred. | |
API.SetParameters.xml | |
Error: Invalid XPath expression '//*:hibernate-configuration/*:session-factory/*:property[@*:name='connection.connection_string']/text()' specified for match. | |
Error: '//*:hibernate-configuration/*:session-factory/*:property[@*:name='connection.connection_string']/text()' has an invalid token. | |
Error count: 1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<parameters> | |
<parameter name="UpdateNHibernateConfig" defaultValue="{connectionstring}"> | |
<parameterEntry | |
kind="Xmlfile" | |
scope="hibernate.cfg.xml" | |
match="/*[local-name()='hibernate-configuration']/*[local-name()='session-factory']/*[local-name()='property'][@name='connection.connection_string']/text()" | |
/> | |
</parameter> | |
</parameters> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment