.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to read multiple namespace URI from xml file in c#

Posted By: saurabhkasyap     Posted Date: May 01, 2012    Points:5   Category :C#
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <ns1:Deal xmlns:ns1="http://www.ad.com/schemas/abc/1.0" xmlns:ns3="http://www.ad.com/schemas/bcd/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <ns1:SubmissionMetadata>


Above is small part of xml file(uppar part).
I want to read all namespaceURI & use the function "reader.NamespaceURI" but it gives only 1st namespaceURI.
Please suggest me any idea so that I can read all three namespace URI from xml file.


Responses
Author: Narayanan             
Posted Date: May 03, 2012     Points: 20   
Author: saurabhkasyap             
Posted Date: May 03, 2012     Points: 20   

Thanks for Reply

Already checked and got only 1st namespaceURI i.e. http://www.ad.com/schemas/abc/1.0
but didn't get next two namespaceURI. for which I'm really concerned but now I fixed my issue.
I have used StreamReader and used a function StreamReader->ReadLine and after that parsed split the line and got all three namespaceURI.




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend