Ich habe eine Datei (zur besseren Lesbarkeit pozwijałem andere Profile und Elemente, auf denen mir egal)xpath - Wie wähle ich den Inhalt der Datei aus?
<?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="urn:jboss:domain:4.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
</extensions>
<profiles>
<profile name="default">
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<subsystem xmlns="urn:jboss:domain:batch-jberet:1.0">
...
</profile>
<profile name="ha">
<profile name="full">
<profile name="full-ha">
<subsystem xmlns="urn:jboss:domain:datasources:4.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
</profile>
</profiles>
</domain>
Ich mag würde dem Artikel auf Seite
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
Richtigkeitsüberprüfung erhalten http://www.xpathtester.com/xpath