C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » XML »

Parse xml attribute


Posted Date: 27 Oct 2009      Posted By: Amal anthony      Member Level: Bronze     Points: 1   Responses: 3



I want to get all the attributes available in the name of imagename in the below xml doc .Thanks in advance.

<ROOT>

<Begin value="Placeholder" NodeName="Node1" treenodecomments=" " action="auto" link="Step2" connode="Node1Node2" Refer_URL="" />
<Step2 value="What type of email problem is the customer having?" NodeName="Node2" treeid="734" treenodeid="Step2" treenodecomments=" " imagename="email1290" >
<Ans action="Step3" value="Unable to Send or Receive." connode="Node2Node3" />
<Ans action="Step4" value="Unable to Receive." connode="Node2Node4" />
<Ans action="Step5" value="Unable to Send." connode="Node2Node5" />
<Ans action="Step6" value="Unable to Integrate." connode="Node2Node6" />
</Step2>
<Step3 value="Unable to Send or Receive." NodeName="Node3" treeid="734" treenodeid="Step2" treenodecomments=" " imagename="email79" imagewidth="131" imageheight="103" action="end" Refer_URL="" />
<Step4 value="Unable to Receive." NodeName="Node4" treenodecomments=" " action="end" Refer_URL="Unable to Receive." />
<Step5 value="Unable to Send." NodeName="Node5" treenodecomments=" " action="end" Refer_URL="Unable to Send." />
<Step6 value="Unable to Receive." NodeName="Node6" treenodecomments=" " action="end" Refer_URL="Unable to Receive." />

</ROOT>





Responses

Author: Amal anthony    27 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Actually i am passing this data from .net to sql server 2005 where i have one stored procedure to process and insert into table


Author: ABitSmart    27 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

You need to provide some more details. What do you mean by "name of imagename" ? Point out to the node with an example. It is not clear from the XML which node you are referring to.

Kind regards,
ABitSmart
DNS Web-master, DNS MVM
My blog
Thoughts.exe



Author: Amal anthony    28 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Thank you .

Below i have the attribute name called as imagename.In the sameway, this attribute available in some more places in the respective xml document itself.Now i want to fetch these attribute details and insert into new table .so please explore ,how to parse this xml document within the stored procedure.

<Step3 imagename="email79" imagewidth="131" imageheight="103" />



Post Reply
You must Sign In to post a response.
Next : Passing value as parameter to xml file
Previous : Display only the Name tag in the Treeview-C# code
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use