<?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>How to get URI or filepath to a currently opened xml document?</title><link>https://www.infopathdev.com:443/forums/thread/73777.aspx</link><pubDate>Wed, 11 Jan 2012 04:41:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73777</guid><dc:creator>xorrr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=73777</wfw:commentRss><description>I use Infopath 2007 with c# code.
I need to get a URI (if xml is opened from web) or filepath (if xml is opened from the harddrive) of the currently opened xml infopath document. How can I do that?
I need a URI to find out whether xml file were opened from the filesystem or from the web, so my code can act dirfferently depending on that.</description></item></channel></rss>