prafulljha / maven-replacer-plugin

Automatically exported from code.google.com/p/maven-replacer-plugin
MIT License
0 stars 0 forks source link

Enhancement for xpath to resolve into an attribute. #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An xpath statement can be used to access content in a node, eg:

foo/bar/baz can access the text content of

<foo>
  <bar>
    <baz>this is my content</baz>
  </bar>
</foo>

But sometimes we want to access content in an attribute, such as:

foo/bar@baz to access

<foo>
  <bar baz="this is my content"/>
</foo>

Currently using an '@' in xpath throws an error.

Original issue reported on code.google.com by scagan...@gmail.com on 11 Oct 2012 at 5:16

GoogleCodeExporter commented 9 years ago
Sure, I'll have a look into doing this for you :)

Original comment by baker.st...@gmail.com on 14 Oct 2012 at 9:20

GoogleCodeExporter commented 9 years ago
Hi, I suspect this plugin already does this for you. Change your xpath to: 
foo/bar/@baz (note the extra slash).

Please let me know if this is okay and I'll close this issue.

Original comment by baker.st...@gmail.com on 4 Nov 2012 at 9:52

GoogleCodeExporter commented 9 years ago
No response and suspect existing functionality exists - closing.

Original comment by baker.st...@gmail.com on 13 Nov 2012 at 1:13