Working with XML Processing Instructions in C#
page 3 of 3
by Michelle Beall
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 44185/ 114

Review

[ Download Code ]

The image (Figure 1) below shows the changes that the code sample made to an existing xml document.

Figure 1
Figure 1

XML processing instructions have their uses and being able to manipulate them will hopefully be a nice addition to your coding toolbox.


View Entire Article

User Comments

Title: re:   
Name: spam filter
Date: 2005-02-17 6:47:20 AM
Comment:
can you help me with an example in asp.net with c# to extract data from XML file and to display into table?
Thank you in advance.
Title: RE: Working with XML Processing Instructions in C#   
Name: Michelle
Date: 2004-11-21 11:42:16 AM
Comment:
Thanks for the great question!

Microsoft InfoPath uses processing instructions to tie the xml data generated by filling out a form to a specific InfoPath template (xsn) as well as to indicate that the xml should be rendered using the InfoPath Application. There are several cases where manipulating the PI would be useful, such as removing those PIs that bind the xml to InfoPath or to add your own PIs to bind to your own xml rendering solution. Another example where I've used PIs is to add information to an XML document without having to incorporate it into the data schema, such as default save location URL for saving the file to an alternative library in Sharepoint. So you can see there are lots of applications of using and manipulating PIs.
Title: Working with XML Processing Instructions in C#   
Name: Pankaja Shankar
Date: 2004-11-20 3:17:38 PM
Comment:
I was wondering when will this be of use. Could you please illustrate and explain a bit more in your response to my comment?

Thanks.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-11-17 11:24:22 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search