<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://k2underground.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">JasonK's Fun Facts</title><subtitle type="html" /><id>http://k2underground.com/blogs/jasonk/atom.aspx</id><link rel="alternate" type="text/html" href="http://k2underground.com/blogs/jasonk/default.aspx" /><link rel="self" type="application/atom+xml" href="http://k2underground.com/blogs/jasonk/atom.aspx" /><generator uri="http://communityserver.org" version="2.1.61120.2">Community Server</generator><updated>2007-08-29T00:32:00Z</updated><entry><title>BlackPearl debugging</title><link rel="alternate" type="text/html" href="http://k2underground.com/blogs/jasonk/archive/2007/08/29/blackpearl-debugging.aspx" /><id>http://k2underground.com/blogs/jasonk/archive/2007/08/29/blackpearl-debugging.aspx</id><published>2007-08-29T07:52:00Z</published><updated>2007-08-29T07:52:00Z</updated><content type="html">&lt;P&gt;Full debugger support in BlackPearl&amp;nbsp;for setting breakpoints and such is on its way.&amp;nbsp; In the meatime, save yourself some manual debugging hassle by emitting messages to the BP Console with this code:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;string loggedInfoSource = string.Format("{0}/{1}", K2.ProcessInstance.Process.Name, K2.Event.Name);&lt;BR&gt;K2.ProcessInstance.Logger.LogInfoMessage(loggedInfoSource , "Your helpful status message");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Note: You must run BPService in console mode to see these messages.&amp;nbsp; Be sure to run the BPService executable under priviledged credentials with "Run As ..."&lt;/P&gt;&lt;img src="http://k2underground.com/aggbug.aspx?PostID=18201" width="1" height="1"&gt;</content><author><name>jasonk</name><uri>http://k2underground.com/members/jasonk.aspx</uri></author><category term="Debugging" scheme="http://k2underground.com/blogs/jasonk/archive/tags/Debugging/default.aspx" /></entry><entry><title>Those Pesky InfoPath Namespaces</title><link rel="alternate" type="text/html" href="http://k2underground.com/blogs/jasonk/archive/2007/08/29/those-pesky-infopath-namespaces.aspx" /><id>http://k2underground.com/blogs/jasonk/archive/2007/08/29/those-pesky-infopath-namespaces.aspx</id><published>2007-08-29T07:32:00Z</published><updated>2007-08-29T07:32:00Z</updated><content type="html">&lt;P&gt;Hate having to crack open the InfoPath file just to get the appropriate namespaces for your XPath queries?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;System.Xml.XmlNamespaceManager nsm = ...; //&amp;nbsp;...&lt;BR&gt;nsm.AddNamespace("my", "http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-04-20T16:26:21");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Use this little gem instead of the second line above:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;nsm.AddNamespace("my", xd.DocumentElement.GetNamespaceOfPrefix("my"));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This line lets you skip that annoying manual step and get straight to the querying!&lt;/P&gt;&lt;img src="http://k2underground.com/aggbug.aspx?PostID=18200" width="1" height="1"&gt;</content><author><name>jasonk</name><uri>http://k2underground.com/members/jasonk.aspx</uri></author><category term="XPath" scheme="http://k2underground.com/blogs/jasonk/archive/tags/XPath/default.aspx" /><category term="Namespace" scheme="http://k2underground.com/blogs/jasonk/archive/tags/Namespace/default.aspx" /></entry></feed>