<?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: Getting the local-name of a field via JScript Code</title><link>https://www.infopathdev.com:443/forums/thread/9179.aspx</link><pubDate>Sun, 26 Feb 2006 08:06:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9179</guid><dc:creator>rjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9179</wfw:commentRss><description>Thanks a lot for the idea MFaus.&lt;br /&gt;&lt;br /&gt;The only problem with your solution is that it adds a "my:" at the start. &lt;br /&gt;&lt;br /&gt;However, after some research, I found a way to get just the name of the field: If you use &lt;br /&gt;&lt;b&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:field1").baseName&lt;/b&gt;&lt;br /&gt;it will return field1 only.&lt;br /&gt;&lt;br /&gt;Thanks again for your help.&lt;br /&gt;&lt;br /&gt;- Reg.</description></item><item><title>Re: Getting the local-name of a field via JScript Code</title><link>https://www.infopathdev.com:443/forums/thread/9178.aspx</link><pubDate>Fri, 24 Feb 2006 15:42:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9178</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9178</wfw:commentRss><description>Try this:&lt;br /&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:field1").nodeName&lt;br /&gt;&lt;br /&gt;In this case, it should return "my:field1".&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Getting the local-name of a field via JScript Code</title><link>https://www.infopathdev.com:443/forums/thread/9177.aspx</link><pubDate>Fri, 24 Feb 2006 07:51:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9177</guid><dc:creator>rjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9177</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;The local-name function:&lt;br /&gt;"Returns the local part of the expanded name of the node in the node-set argument that is first in document order"&lt;br /&gt;&lt;br /&gt;I basically want to use it to return the name of the datasource field.&lt;br /&gt;&lt;br /&gt;The full intent is to be able to create some script which will cycle through all elements in the datasource, and display a list of fields that have not met certain circumstances.&lt;br /&gt;&lt;br /&gt;The error that I am getting is:&lt;br /&gt;"Local is not defined", but that is because I simply entered &lt;b&gt;local-name(XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text);&lt;/b&gt; which I assume doesn't work because it doesn't know where the function is.&lt;br /&gt;&lt;br /&gt;Any help would be appreciated.&lt;br /&gt;&lt;br /&gt;Cheers, &lt;br /&gt;&lt;br /&gt;- Reg.</description></item><item><title>Re: Getting the local-name of a field via JScript Code</title><link>https://www.infopathdev.com:443/forums/thread/9176.aspx</link><pubDate>Fri, 24 Feb 2006 07:19:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9176</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9176</wfw:commentRss><description>Hi Reg,&lt;br /&gt;What does local-name function do? What is the error?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle</description></item><item><title>Getting the local-name of a field via JScript Code</title><link>https://www.infopathdev.com:443/forums/thread/5397.aspx</link><pubDate>Fri, 24 Feb 2006 00:20:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5397</guid><dc:creator>rjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5397</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;Is it possible to use the function "local-name", within managed JScript Code.&lt;br /&gt;&lt;br /&gt;I tried simply typing in "local-name", and used a field from the data source as its parameter, but it comes up with an error.&lt;br /&gt;&lt;br /&gt;Any help would be appreciated.&lt;br /&gt;&lt;br /&gt;- Reg.</description></item></channel></rss>