Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I need to add the prefix user to the bold nodes.
I tried to manipulated as string. but i always get the namespace error.

Can some1 some one please guide me. Thnx thanks

XML
<?xml version="1.0" encoding="utf-8"?>
<user:enterprise xmlns:user="http://www.imsglobal.org" >
  <webserviceheader>
    <commitfrequency>1</commitfrequency>
    <checkexternalidfirst>N</checkexternalidfirst>
  </webserviceheader>
   <person>
    <UserId>2</UserId>
    <Name>
      <FN>Sammy Sam</FN>
    </Name>
    <Email>Sam@yahoo.com</Email>
    <Adr>
      <address1>Vacoas</address1>
      <address2>Phoenix</address2>
      <country>Mau</country>
    
    <Extension>
      <Password>LOL2</Password>
      <Manager>Boss1</Manager>
    <Extension>
</person>
    <UserId>3</UserId>
    <Name>
      <FN>Johson Thomas</FN>
    </Name>
    <Email>Tom@yahoo.com</Email>
    <Adr>
      <address1>Pereybere</address1>
      <address2 />
      <country>Mau</country>
    </Adr>
<b>    <Extension>
      <Password>LOL3</Password>
      <Manager>Boss3</Manager>
    </Extension>
  </person></b>
</user:enterprise>


[Edit: added code tags]
Posted
Updated 8-Jun-12 1:24am
v3
Comments
Jim Jos 8-Jun-12 8:10am    
Please post the code also.. we could identify the problem there..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900