Osagie_1 0 Newbie Poster
<Articles>
            <Article ID="111">
                <author>Peter Paul</author>
                <pubDate>01/01/2015</pubDate>  
                <Translations>
                    <lang1>English</lang1>
                    <lang2>French</lang2>
                    <lang3>Arab</lang3>
                    <lang3>Chinese</lang3>
                </Translations>
            </Article>

            <Article ID="222">
                <author>Monkey Rice</author>
                <pubDate>01/01/2016</pubDate>  
                <Translations>
                    <lang1>English</lang1> 
                </Translations>
            </Article>

            <Article ID="333">
                <author>John Silas</author>
                <pubDate>01/01/2017</pubDate>  
                <Translations>
                    <lang1 country="england">English</lang1>
                    <lang2 country="france">French</lang2> 
                    <lang3 country="china">Chinese</lang3>
                </Translations>
            </Article>
        </Articles>

i want to update attribute value "england", as in:

...
      <Translations>

       ...         
        <lang1 country="england">English</lang1>
       ...

      </Translations>
    ...

to value "germany", as in:

...

   <Translations>
     ...       
       <lang1 country="germany">English</lang1>
     ...
   </Translations>

...

or any future node that may be deeper within lang1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.