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
114.1K
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 Sergey Alexandrovich Kryukov 398
1 CPallini 333
2 George Jonsson 270
3 OriginalGriff 159
4 Prasad Khandekar 135
0 OriginalGriff 4,613
1 CPallini 3,340
2 Sergey Alexandrovich Kryukov 2,771
3 George Jonsson 2,254
4 Gihan Liyanage 2,020


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100