Skip to main content
edited tags
Link
αғsнιη
  • 41.9k
  • 17
  • 75
  • 117
Reformulate. Avoid calling a node "attribute".
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Change XML node's value inside xml attribute, using sed?

I have the following attributenode in an XML document:

<client-version>1.2.8</client-version>

How can I replace everything insidereplace the node's value, <client-version></client-version>1.2.8 to only change the value, with (1.2.8)1.2.9?

So it would beWanted output:

<client-version>1.2.9</client-version>

Change value inside xml attribute using sed?

I have the following attribute:

<client-version>1.2.8</client-version>

How can I replace everything inside <client-version></client-version> to only change the value (1.2.8)?

So it would be:

<client-version>1.2.9</client-version>

Change XML node's value, using sed?

I have the following node in an XML document:

<client-version>1.2.8</client-version>

How can I replace replace the node's value, 1.2.8, with 1.2.9?

Wanted output:

<client-version>1.2.9</client-version>
Source Link

Change value inside xml attribute using sed?

I have the following attribute:

<client-version>1.2.8</client-version>

How can I replace everything inside <client-version></client-version> to only change the value (1.2.8)?

So it would be:

<client-version>1.2.9</client-version>