2
Answers

Reading Xml Node with Namespace

Jayakumar

Jayakumar

9y
393
1
Hi All,
   I have XML file, which have namespace in it.. I have to read the values in XML file without removing those namespaces.
 
  Sample XML:
         
<SSOToken xmlns="com.test/2010/10/10"  xmlns:i="http://www.w3.org/2001/XMLSchema-instance">   
   <ObjectId/>
   <ObjectType/>
   <SSOTokenGuid>testID</SSOTokenGuid>
   <UserIdentifier>testUser</UserIdentifier>
</SSOToken>
 
 
   I tried by removing the namespace before reading the values and that works fine.
 
   But my requirement is I should not remove the namespaces.. 
 
   How can I achieve this, Can anyone please help ?? 
 
   Thanks In Advance.....
 
 
  Regards,
  Jayakumar B 
Answers (2)