How to find xsn from an infoapth XML - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to find xsn from an infoapth XML

Last post 08-21-2007 11:26 AM by Agni Jonnalagadda. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 08-14-2007 04:30 AM

    • jaleel
    • Not Ranked
    • Joined on 08-14-2007
    • Posts 3

    How to find xsn from an infoapth XML

    Hi,

    I have an .xml infopath form. When I open it in a Notepad I can see the referance to the template (.xsn) like name="urn:attendance:UST"( a fully trusted form). Using this name="urn:attendance:UST", can I get the original location of the .xsn file in the local system?

    The scenario is: I want to create (programmatically VB.net)  downlevel forms using XDown tool shipped with infoapth 2003 SDK using this .xsn file .But I have got only the .xml file as an input for my application, not the .xsn(it exists somewhere in the local machine). I need to get the actual location of .xsn from the .xml. Any solution...?

     I know this forum primarily looking into issues with Infoapth 2007. But I feel this question is valid for both Infopath 2003 and Infopath 2007 forms .

     Any help will be grateful...

    Filed under:
  • 08-14-2007 05:49 AM In reply to

    • romaik
    • Top 500 Contributor
    • Joined on 05-31-2007
    • Paris France
    • Posts 43

    Re: How to find xsn from an infoapth XML

    The path to your xsn form (on your machine) is also printed into the xml file.

    here is a sample of mine  :

    <?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:test:-myXSD-2007-05-11T07-52-42" href="D:\Data\test.xsn" solutionVersion="1.0.0.32" productVersion="11.0.6565" PIVersion="1.0.0.0" ?>

    By the way, I don't think this forum is mainly for IP2007 'cause I had some problems with IP2003 and I got all my answers from here :)

    InfoPath 2003 SP2 User
  • 08-16-2007 10:47 PM In reply to

    • jaleel
    • Not Ranked
    • Joined on 08-14-2007
    • Posts 3

    Re: How to find xsn from an infoapth XML

    Thanks  romaik for you quick reply.You are true. My forms also have the same thing as href="........". But when I register the form with RegForm tool in my system and create new .xml from that registered template, no href is found. It looks like this:

    <?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0.0.1" productVersion="11.0.6565" name="urn:attendance:UST" PIVersion="1.0.0.0" ?><?mso-application progid="InfoPath.Document"?><tc:timeCard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tc="http://schemas.microsoft.com/office/infopath/2003/sample/TimeCard" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-us">

    I have registerd with name urn:attendance:Ust. From this, is there any way to get the actual location of .xsn?

    Thanks in advance..

     

    jaleel 

     

     

    Filed under:
  • 08-17-2007 12:27 AM In reply to

    Re: How to find xsn from an infoapth XML

    Hello

    I dont think you can find out the location of XSN using the name.

    Kalyan G Reddy
    Infopath MVP 2007 and 2008
  • 08-17-2007 09:50 AM In reply to

    Re: How to find xsn from an infoapth XML

    Hi Jaleel,

    Here are the steps how you can get to the XSN.

    1. Go to Start->Run
    2. Type "regedit" and click on enter key
    3. Here do a "ctrl+f" and type "urn:attendance:UST"
    You will get some result and you will the path to your xsn at that place

    Thanks

  • 08-20-2007 12:38 AM In reply to

    • jaleel
    • Not Ranked
    • Joined on 08-14-2007
    • Posts 3

    Re: How to find xsn from an infoapth XML

    Hi Agni,

    Thanks for giving my thread( I supposed it as dead) another breath.Thanks a lot.

    Yea it worked.i am able to get the actual location of .xsn now.

    Can you suggest is it possibile through code?Bcoz I only get the .xml file (generated from a registered .xsn template ) as an input to my

    application.I believe it is possibile .And what is the privileges required to access the registry? is it enough the privileges needed for registering a .xsn template?

    Once again thanks...

    Thanks to all for your reply to this post in advance....!!!!:)

    jaleel

     

    Filed under:
  • 08-21-2007 11:26 AM In reply to

    Re: How to find xsn from an infoapth XML

    Hi Jaleel,

    I dont know what previleages are required to access registry through code, you probably should use google for that.

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.