Referencing node attribute in OuterXML? - InfoPath Dev
in

InfoPath Dev

Referencing node attribute in OuterXML?

Last post 08-13-2010 07:05 AM by Pinback. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-13-2010 06:47 AM

    Referencing node attribute in OuterXML?

    Hello,

    I have the following OuterXML:

    "<dfs:Room_Descriptions xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" Facility_Room="ABC" Facility="Building1" Room="F2"/>"

    The code watch I executed shows the OuterXML is stored as a string.

    I tried:

    Dim NI As System.Xml.XPath.XPathNodeIterator         (NI has the OuterXML posted above)
    Dim DNode As Xml.XPath.XPathNavigator
    DNode = NI.Current.SelectSingleNode("//Facility_Room")

    but DNode returns nothing. Any thoughts? I could parse the string, but I figured there is an XPath option that I am missing.

    Thanks in advance,

    Pinback

  • 08-13-2010 06:59 AM In reply to

    Re: Referencing node attribute in OuterXML?

    Did you try "@Facility_Room"?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-13-2010 07:05 AM In reply to

    Re: Referencing node attribute in OuterXML?

    Thanks, Jimmy!

    (sigh) You make it seem so simple. ;)

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