<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set element/attribute to a variable in jscript?</title><link>https://www.infopathdev.com:443/forums/thread/22098.aspx</link><pubDate>Mon, 30 Jul 2007 20:55:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22098</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22098</wfw:commentRss><description>&lt;p&gt;I believe I found the answer. Needed to set the value as a string.&lt;/p&gt;&lt;p&gt;&amp;nbsp;XDocument.DOM.selectSingleNode(&amp;quot;my:Main/my:Subgroup/my:Microgroup/my:GUIDForm&amp;quot;).Text = String(GUIDLabel);&lt;/p&gt;</description></item><item><title>Set element/attribute to a variable in jscript?</title><link>https://www.infopathdev.com:443/forums/thread/22097.aspx</link><pubDate>Mon, 30 Jul 2007 19:12:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22097</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22097</wfw:commentRss><description>&lt;p&gt;I feel this is REALLY a newbie question:&lt;/p&gt;&lt;p&gt;How do I set an element or attribute to a variable in jscript? The code below is what I tried. The first line sets a variable to a function. I then use this function in an alert to verify it&amp;#39;s presence. The last line is the issue. The syntax doesn&amp;#39;t seem to work. I did several searches before posting but I couldn&amp;#39;t not find anything.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;var GUIDLabel = GUIDGen(); &lt;/p&gt;&lt;p&gt;XDocument.UI.Alert (GUIDLabel); &lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;my:Main/my:Subgroup/my:Microgroup/my:GUIDForm&amp;quot;).Text = GUIDLabel;&lt;/p&gt;</description></item></channel></rss>