<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Get all attributes that match a given name</title><link>https://www.infopathdev.com:443/forums/thread/14498.aspx</link><pubDate>Mon, 24 Apr 2006 07:34:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14498</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14498</wfw:commentRss><description>the XPath expression "//@isExpanded" should return a NodeList with the attribute values.&lt;br /&gt;&lt;br /&gt;hth</description></item><item><title>Get all attributes that match a given name</title><link>https://www.infopathdev.com:443/forums/thread/12848.aspx</link><pubDate>Mon, 24 Apr 2006 02:54:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12848</guid><dc:creator>hollis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12848</wfw:commentRss><description>Is there is a way to get all attributes for a given name in an XML document?&lt;br /&gt;&lt;br /&gt;i.e.&lt;br /&gt;&lt;br /&gt;&amp;lt;details isExpanded='false'&amp;gt;&lt;br /&gt;	&amp;lt;name isExpanded='false'&amp;gt;&lt;br /&gt;		&amp;lt;firstname&amp;gt;&lt;br /&gt;		&amp;lt;lastname&amp;gt;&lt;br /&gt;	&amp;lt;/name&amp;gt;&lt;br /&gt;	&amp;lt;phonenos isExpanded='false'&amp;gt;&lt;br /&gt;		&amp;lt;home&amp;gt;&lt;br /&gt;		&amp;lt;work&amp;gt;&lt;br /&gt;		&amp;lt;fax&amp;gt;&lt;br /&gt;		&amp;lt;mob&amp;gt;&lt;br /&gt;	&amp;lt;/phonenos&amp;gt;&lt;br /&gt;&amp;lt;/details&amp;gt;&lt;br /&gt;&amp;lt;stuff isExpanded='false'&amp;gt;&lt;br /&gt; …&lt;br /&gt; …&lt;br /&gt; …&lt;br /&gt;&amp;lt;/stuff&amp;gt;&lt;br /&gt;&lt;br /&gt;I want to get all 'isExpanded' attributes so I can change their values.&lt;br /&gt;&lt;br /&gt;There is a method to get all elements: getElementsByTag("details") would return the details node… surely theres one for all attributes???&lt;br /&gt;&lt;br /&gt;The only other way i see is to iterate through all elements and see if they have that attribute, then modify it. Don't particularly want to go down this path as i MANY elements in the form.</description></item></channel></rss>