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

Question #67

Closed
charles-d-burton opened this issue Jun 3, 2016 · 1 comment
Closed

Question #67

charles-d-burton opened this issue Jun 3, 2016 · 1 comment
Labels

Comments

@charles-d-burton
Copy link

Say you have an XML like this:

<domain> <configs > <config name="server"> <java-config> <jvm-options>Some option</jvm-options> </java-config> </config> <config name="something"> <java-config> <jvm-options>another option</jvm-options> </java-config> </config> </configs> </domain>

How do I get the module to only modify the first element?

@charles-d-burton
Copy link
Author

I figured it out. Just had to grab the tag.

/domain/configs/config[@name = 'server-config']/java-config

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