<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Reading Data from Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/10085.aspx</link><pubDate>Tue, 18 Jul 2006 17:15:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10085</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10085</wfw:commentRss><description>What code are you using to read an element and/or attribute? It could be the method you are using is incorrect.</description></item><item><title>Reading Data from Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/5719.aspx</link><pubDate>Tue, 11 Jul 2006 06:28:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5719</guid><dc:creator>sumitdomyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5719</wfw:commentRss><description>Hi All, &lt;br /&gt;&lt;br /&gt;I have an Infopath Forms Library. Schema contains around six different sections. All sections contains some fields and an attribute. I have created myschema.cs file for reading infopath forms using following command: XSD.EXE "C:\Documents and Settings\Desktop\Product Concepts\Extracted Files\myschema.xsd" /l:cs /c. &lt;br /&gt;&lt;br /&gt;Code for reading a file is: &lt;br /&gt;&lt;br /&gt;MasterFile objSchema = new MasterFile();&lt;br /&gt;Byte[] reqData; &lt;br /&gt;//open the file in binary mode&lt;br /&gt;reqData = file.OpenBinary();&lt;br /&gt;//create a memory stream of this binary data&lt;br /&gt;MemoryStream ios = new MemoryStream(reqData);&lt;br /&gt;//now create a xml serializer for data&lt;br /&gt;XmlSerializer ser = new XmlSerializer(typeof(MasterFile));&lt;br /&gt;//deserialize this data into the Product Concept object&lt;br /&gt;objSchema = (MasterFile)ser.Deserialize(ios);&lt;br /&gt;ios.Close();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code is working fine, when i read fields value (from any section) from infopath form(XML File). But i'm not able to read Attributes. Any IDEA???? &lt;br /&gt;&lt;br /&gt;Thanks, &lt;br /&gt;Sumit</description></item></channel></rss>