Navigate XML using c# code - InfoPath Dev
in

InfoPath Dev

Navigate XML using c# code

Last post 11-02-2013 07:39 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-25-2013 09:08 PM

    • stara
    • Top 200 Contributor
    • Joined on 10-20-2010
    • Posts 54

    Navigate XML using c# code

    Hello,

    I have few controls within a repeating section. When the user submits the form, I'd like to capture the values entered in the repeating section.

    I stepped through the code and here is the "OuterXML" 

    But how would I retrieve values from the outer XML. Below is the OuterXML structure: ------------------------------------------------------------------------------

     d:tbl_review xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" pk_review="7" review_status="1" date_due="2013-08-02T00:00:00" entry_number="1436" last_name="Doe" first_name="John" code="1965"  xmlns:xdado="http://schemas.microsoft.com/office/infopath/2003/adomapping" xdado:OM1pii="0">
      <d:tbl_result pk_result="41" fk_review="7" fk_result_type="2" category_description="New test Record" Comments="" xdado:OM1pii="1"/>
      <d:tbl_result pk_result="42" fk_review="7" fk_result_type="2" category_description="test record" Comments="" xdado:OM1pii="2"/>  
    </d:tbl_review> 

    I'd like to retrieve the values from the following elements: review_status, Comments.

    Thanks a lot

    Stara 

     

     

  • 11-02-2013 07:39 AM In reply to

    Re: Navigate XML using c# code

     Here is an MSDN article that should get you on the right path: http://msdn.microsoft.com/en-us/library/aa945227(v=office.14).aspx

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.