tags:

views:

411

answers:

0

hey everyone my xml looks like this:

<someElement>
  <DB>
    <DBELEMENT>
    </DBELEMENT>
    <DBELEMENT>
    </DBELEMENT>
  </DB>
  <GROUP>
    <OBJECT>
      <something type="name">
        <value>some value
        </value>
      </something>
      <something type="desc">
        <value someattribue="AA">
           <StyledElement>
             <Container/>
             <StyledElement>
               <Paragraph Alignment="UNDEFINED" Indent="0"/>
               <StyledElement>
                 <PlainText TextValue="the first text"/>
               </StyledElement>
             </StyledElement>
             <StyledElement>
               <Paragraph Alignment="UNDEFINED" Indent="0"/>
                 <StyledElement>
                   <PlainText TextValue="second text"/>
                 </StyledElement>
             </StyledElement>
           </StyledElement>
        </value>
      </something>  
    </object>
  </GROUP>    
</someElement>

and my output should be

<someElement>
     <DB>
       <DBELEMENT>
       </DBELEMENT>
       <DBELEMENT>
       </DBELEMENT>
     </DB>
     <GROUP>
        <OBJECT>
           <something type="name">
              <value>some value
              </value>
            </something>
            <something type="desc">
               <value someattribue="AA">
                 the first text, the second text
               </value>
           </something> 
        </object>
    </GROUP>   
</someElement>

in addition please notice that i have more than one object and i need to do the same for each object and the texts are diffrent Thanks in advance...