Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML
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 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&gt
</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 8-Jun-12 1:10am
joinx50160
Edited 8-Jun-12 1:24am
114K
v3
Comments
JimJos at 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)

  Print Answers RSS
0 Maciej Los 350
1 OriginalGriff 283
2 Nguyen.H.H.Dang 230
3 Sergey Alexandrovich Kryukov 230
4 Peter Leow 195


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid