Progid to launch an xml file in MS Project 2010 client.

For any xml  file the mso-application declaration with progid “Word.Document” allows this xml file to open using MS Word when
double clicked on the file. In the similar manner, I am looking to open the XML file obtained from MS Project. I tried to add
mso-application declaration with progid “MSProject.Project” ,
but it opened up with normal text editor whereas I was expecting in MS Project 2010 client application.
After reading different articles, I come to know that these progid s will be present in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared\XML\ProgIds. Unfortunately I did not find any entry for MS Project. Hence, I tried to add a string key
MSProject.Project here and restarted the OS. After restart, if I double click the xml file with MSProject.Project as progid under mso-application declaration, it still opened with text editor but not in MS Project 2010.
Can you please guide me - how I can open an xml file in MS Project just by double clicking on the file.
Regards,
Bharath

Bharath --
Have you tried the following:
Launch your Windows Explorer software and navigate to the folder containing the XML file.
Right-click on the XML file, select Open With on the shortcut menu, and then click Choose Default Program on the flyout menu.
In the Open With dialog, click the Browse button.
Navigate to the folder where the Microsoft Project 2010 EXE file is located.
Select the Microsoft Project EXE file (it is called WINPROJ.EXE) and click the OK button.
If you notice in the Open With dialog, all of the default programs listed are XML editors.  I suspect this is why you cannot do what you want with an XML file, since Microsoft Project is not an XML editor, but perhaps the above steps will work for you. 
Hope this helps.
Dale A. Howard [MVP]

Similar Messages

  • I m not able to create xml file in Java Project

    hi all,
    I have created one java project just to try with Ant Builder. I have created one class inside it. and now i m creating an XML file inside that project.
    But as soon as i try to create the File -> New -> File and give the .xml extention of the file this gives error into the project.
    Will you suggest me the solution for that?
    Thanks in advance.

    Assuming that you are facing this problem in NDS, here is the solution.
    Go to Windows--> Preferences --> WorkBench -->File Associations
    In the File Types list select *.xml
    This will display the default associated XML editor as
    XML Editor(default) in the bottom list box.
    Click on add button near the bottom list box and select Text Editor, click Ok.You will see one more entry in the list box as "Text Editor".
    Select this entry and click on the default button.
    Click Ok and close the preferences dialogue.
    Now create a new xml file.You wont see the error this time.
    Please note that this will treat all simple xml files you will create as TEXT Files and always open with Text Editor.You can override this behaviour with right click on the file and select appropriate editor from the "Open With" context menu.
    The error you are talking about is because the XML editor tries to check well-formedness and basic syntax rules for the file that you newly created, actually is a noce feature of the IDE.
    Rgds,
    Amol

  • More than one struts-config.xml files in one project

    Hi all
    Can we have more than one struts-config.xml files in one project developed using struts.
    If so what is purpose and how to do this.
    Anybody please explain on this topic.
    Thanks
    Parvathy

    Hi all
    Can we have more than one struts-config.xml files in
    one project developed using struts.
    yes it is possible
    If so what is purpose and how to do this.
    it is use for odular application so developer won't share a single configureation file.. as you know struts-config.xml is defined on the web.xml
    like this:
    <servlet>
    <servlet-name>mybank</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet
    </servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/module1</param-name>
    <param-value>
    /WEB-INF/struts-module1-config.xml
    </param-value>
    </init-param>
    </servlet>

  • Can someone help me export a XML file from my project file?

    hey guys,
    I need someone to help me if possible, i was working at school with final cut pro and forgot to export it in xml format and only saved it in final cut pro format... i need to work on this at home and i have a pc.. because there are no lab hours and its due tommorrow, if anyone can help that would be great, thanks!!
    Winston

    i believe it was final cut pro 5, and i have premiere pro cs4 and it says itll read any xml file from final cut pro.
    if anyone wants to help me... here is my fcp file
    http://rapidshare.com/files/208267210/abstract.fcp.html
    you can just email me back the xml file to [email protected]
    i really appreciate it if someone can help me out!!
    Message was edited by: WinstonWong

  • Read  an XML file and send it to client

    Hi,
    I'm introducing to servlet development and I'm trying to do some AJAX calls. The client side is implemented, but I have some troubles on the server side. I want to open an XML file and send it to the client. How can I do that? Any special header?
    I have implemented this test in PHP, so you can imagine what I would like to do:
    if ($type == "xml"){
         $xml = "";
         $file = fopen ("file.xml", "r");
         while (!feof ($file)){
              $xml .= fgets ($file, 4096);
         fclose ($file);
         header ("Content-type: text/xml; charset=ISO-8859-1");
         echo $xml;
    }The XML file is:
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <users>
         <user>
              <name>Pepe</name>
              <age>18</age>
         </user>
         <user>
              <name>María</name>
              <age>21</age>
         </user>
    </users>Thanks.

    Not very useful:(.
    This is my code:
    PrintWriter out = null;
            try{
                   String type = request.getParameter ("type");
                   if (type.equals ("xml")){
                        response.setContentType ("text/xml; charset=ISO-8859-1");
                        out = response.getWriter ();
                        String xml =
                             "<?xml version='1.0' encoding='ISO-8859-1'?>" +
                             "<users>" +
                                  "<user>" +
                                       "<name>Pepe</name>" +
                                       "<age>18</age>" +
                                  "</user>" +
                                  "<user>" +
                                       "<name>María</name>" +
                                       "<age>21</age>" +
                                  "</user>" +
                             "</users>";
                        out.println (xml);
            }finally{
                out.close ();
            }This code works. The servlet send back the xml and the client shows the content but, as you can see, i'm not reading the xml file. So my problem is on reading the xml file as a plain text. My code is this:
    response.setContentType ("text/xml; charset=ISO-8859-1");
                        out = response.getWriter ();
                        String xml = "";
                        FileReader fr = null;
                        BufferedReader br = null;
                        try{
                             fr = new FileReader (new File ("file.xml"));
                             br = new BufferedReader (fr);
                             String linea;
                             while ((linea = br.readLine ()) != null){
                                  xml += linea;
                                  //System.out.println (linea);
                             fr.close ();
                        }catch (Exception e){
                             e.printStackTrace ();
                        }But now I get an Exception File not found. The xml file is in the web directory (I'm using net beans 6.8). Where I have to put the file?
    Thanks.
    Edited by: GagleKas on Mar 15, 2010 6:39 AM

  • How to send XML files through Business Connector to client URL

    Dear ALL
    I am new to SAP BC. We have setup BC 4.8 and would like to send out a XML file from BC to Client URL. Could someone please guide me.
    Please suggest solutions.
    Thanks
    Ahmed

    Hello Mickael
    Thanks for your reply. No, we do not have PI. This BC will be used for point to point communication with client.
    Scenario:
    R/3 server to send XML files to BC. BC will load these files ( using pub.getfile service), this file is to be parsed using pub.loaddocument service and then sent to client in XML format wrapped with digital signature. As i am new to BC i am unable to parse this file and wrap it with the digital signaature to send it.
    Kindly advise on how best can we perform this action.
    Thanks
    Ahmed

  • OAF - Add/Import Page XML file into existing project

    Friends, need little help. I have a partial oracle iExpense project installed on my machine. Mostly the custome code/packages. I have a requirement of fixing something on the iExpense seeded page below.
    /oracle/apps/ap/oie/entry/header/webui/GeneralInformationPG
    The problem is that it doesnt save the data if we click on the Save button at first go, and put the old values back into the fields. But right after that if we make changes again and hit the save button second time it Saves successfully. Weird eh...??? Does any body guide me what could be the possible problem? or how to resolve it?
    Also my question is that GeneralInformationPG doesnt showup in my project even though it exist in the folder. So i cant realy see this XMl file in jdeveloper. How can i register it or add/import into the existing project so i could start debugging?
    Thanks

    Please ask this on the {forum:id=210} forum.
    Timo

  • Error opening Project 2007 file after using project 2010

    This is the second time I'm experiencing this problem.
    Created a file (say Rev 1) in Project 2007 at work and took it home and updated it using Project 2010. When I finished updating using Project 2010, I saved the file in Project 2007 format. Came to work the next day, opened the file using
    Project 2007 and did a "Save As" so that I have another revision of the file (Rev 2).
    After updating Rev 2 in Project 2007 I closed it but when I came to work the next day I couldn't open Rev 2 file again either in Project 2007 or 2010. This has happened to me with 2 different files.
    The error message I get is
    An unexpected error occured during command execution.
    Try the following:
    Verify that all argumen names and values are correct and are of the correct type.
    You may have run out of memory. To free up available memory, close programs, projects, or windows that you aren't using.

    It seems to me that it has to do something with invalid characters in the file name of the timeline. Or it could be anything from an '&' to two concurrent spaces, mulitple '.' or even a dash (-). Stick with single spaces, letter and
    number combinations and you should be fine. The problems arise based on how the file has been opened. Here’s one thread like yours. It could be useful for your, read http://www.filerepairforum.com/forum/microsoft/microsoft-aa/project/625-project-error-“an-import-error-occurred”

  • GetAppletContext().showDocument fails to open XML file on WIN XP SP2

    Hi all,
    I am working on WINDOWS XP SP2, jre 1.4.2_07. I am trying to launch an XML file on the local machine through an applet using
    getAppletContext().showDocument(docURL, "_blank");
    The docURL is of form "file:////D:\temp\doc.xml"
    This fails to open an XML file. There is no traceback in JAVA console or any exception being thrown.
    However, if I try to open "html" or "htm" file with the same applet, it succeeds.
    Is it a known issue on WinXP? Or am I missing any setting or something?
    Thanks
    Rohit

    Does anyone has a alternative solution for this? How to create the files on the server and have the applet display them using showDocument?

  • Help on creating a ServerSession in Eclipse with XML file

    Hi,
    I am using Toplink in Eclipse with Tomcat/Apache (or at least trying to :)
    I am trying to make the following code work:
    Project myProject = XMLProjectReader.read("myproject.xml");
    Server serverSession = myProject.createServerSession();
    but I get an exception:
    {color:#ff0000} +"7099", "The deployment project xml resource {0} was not found on the resource path. Check that the resource name/path and classloader passed to the XMLProjectReader are correct. The project xml should be included in the root of the application's deployed jar, if the project xml is deployed in a sub-directory in the application's jar ensure that the correct resource path using \"/\" not \"\\" is used."+ {color}
    - I think the project cannot find the xml file in my project - but I was never sure where this should go in any case - I put it in the META-INF folder but made no difference. Where should I put these xml files?
    Any help much appreciated

    Simon,
    Hi, I assume you are deploying a WAR to Tomcat. The following tutorial on running TopLink using the org.eclipse.persistence.jpa.PersistenceProvider is pure JPA but deals with the same deployment issues.
    In particular note that there are two META-INF directories - we want to use only the one off of src.
    "Make sure that your persistence.xml (and optionaly orm.xml) file is placed off of the src/META-INF directory and not the default WebContent/META-INF dir so that it gets picked up by the servlet classloader from the classes directory."
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#persistence.xml
    thank you
    /michael
    http://www.eclipselink.org

  • Problems with and tags while reading the xml file

    Hi
    I am using the xml files in my project. The project uses Tomcat, JMS. The project is divided into some components which communicate with each oher thru JMS. The component for which I am responsible gets a dcoument object from the JMS which is a processed xml of the following format (the processing is done by the DBMS_XMLGEN package of oracle)
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <filename>157_1000000001</filename>
    <querydata>
    <tabdata>
    <tabinfo>Tab-id3</tabinfo>
    <queryset>
    <query name="Fax">
    select a.ARLN_NAME,d.TICKETED_ORIGIN,d.TICKETED_DESTINATION, d.ENDORSEMENTS,to_char(d.DATE_OF_ISSUE,'DDMONYY') as DATE_OF_ISSUE ,d.EXCHANGE_DOC_TYPE,
                   d.PASSENGER_NAME,d.ORIG_ISS_AIRLINE,d.ORIG_DOC_NO,d.ORIG_PLACE_OF_ISSUE,
                   to_char(d.ORIG_DATE_OF_ISSUE,'DDMONYY'),d.ORIG_ISSUE_AGENT,d.CUR_OF_SALE,d.GROSS_FARE,d.EQUIV_CUR_OF_SALE,d.EQUIV_FARE,
                   d.PANDA_DEAL_CODE,d.ISI,d.reporting_date
                   from airline_master a,ticket_main d,ticket_conj e where d.doc_no = e.doc_no and d.iss_airline = e.iss_airline
                   and e.conj_doc_no = (select DOC_NO from TICKET_CONJ where CONJ_DOC_NO = 1000000001 and ISS_AIRLINE = 157)
                   and e.ISS_AIRLINE = 157 and d.iss_airline = a.ARLN_NUM_CODE
    </query>
    </queryset>
    </tabdata>
    </querydata>
    the function on my side is like this
    private void processMessage(ObjectMessage objmessage)
         Document XMLreqObject = (Document) objmessage.getObject();
         Element root = XMLreqObject.getRootElement();                
         String resultFilename = root.getChildText("filename");
         Element tabSet = root.getChild("querydata");//doesnt work
         ArrayList tabSetlist = new ArrayList(tabSet.getChildren ("tabdata"));//doesnt work
    The code commented with "doesnt work", is not working. What must be the problem ?
    Thanks in Advance
    Martin

    Okay. Your original example XML didn't include < or > which was rather confusing if that particular feature was supposed to be the cause of the problem. Also calling them "tags" was rather confusing since "tags" is the term for the things that come at the beginning and of an element, like this:<data>...</data>Anyway, I assume your theory is that documents that don't have < in a text element process correctly and documents that do have < in a text element get "stuck" in the parser? Well, from your original description the process appears to be:
    1. Create XML
    2. Parse it into a Document
    3. Send the Document via JMS
    4. Receive the Document via JMS
    5. Process it.
    And it's step 4 that is "stuck"? That would be my guess based on the code you posted.

  • Sending xml file from client to servlet

    Hi,
    I am writing the server component of an applcation, such that it will receive xml files from the clients(standalone application similar to javaSwing stuff but it's coded in C#), and the servlet will have to extract the data from the xml file and update the mySql database. it will also fulfill the client's request for xmlFiles (and extract data from DB, format to xml file and send back to client)
    I'm new to implementing the servlet receiving files from clients so would need some help.
    I've got 3 questions to ask:
    1) How does the servlet receive/returns the xml file from the client as a series of httpPost request/response. Do i send a File or the file's contents as a String to/from the client?
    2) Is it also a must to use socket for the file transfers? I have read in other posts about sockets as well as HttpURLConnection but i don't quite understand.
    3) When I send a file back to the client(client is standalone application written in C# whereas server is coded in java), what do i specify for the HttpResponse.setContentType() in my servlet? (i'm returning the xml file to client)
    Would really appreciate for any help rendered. If you have any useful links, would appreciate them too. Thanks a lot.
    Karen

    I've got 3 questions to ask:
    1) How does the servlet receive/returns the xml file
    from the client as a series of httpPost
    request/response. Do i send a File or the file's
    contents as a String to/from the client?The server will listen on some port for requests. The client has to open a socket to this server to send the file as string to the server.
    see http://java.sun.com/docs/books/tutorial/networking/index.html
    >
    2) Is it also a must to use socket for the file
    transfers? I have read in other posts about sockets as
    well as HttpURLConnection but i don't quite
    understand.You use HttpURLConnection to make a request using the http protocol, instead of opening a socket and then writing the html headers yourself.
    3) When I send a file back to the client(client is
    standalone application written in C# whereas server is
    coded in java), what do i specify for the
    HttpResponse.setContentType() in my servlet? (i'm
    returning the xml file to client)Its up to your receiving program how to interpret this though, so you probably dont need this.

  • How To Process an XML File

    Hi All
    Clasic ASP
    MySQL
    Win 2K Server
    I have an XML file that is uploaded from clients via a
    browser which
    contains job data. Once uploaded I need to process it into a
    MySQL DB using
    classic ASP.
    The file contains 3 lots of elements under the main job
    element; these are:-
    <job_detail>
    <engineers>
    <materials>
    The upload and save aspect I can do no problem what I need to
    do is read the
    file and process each job detail record, each engineer detail
    record and
    each materials record into a database, something on the lines
    of:-
    Upload file from client
    Save file to disk
    Open XML file
    Select all job records
    Loop through and process job records
    Select all engineer records
    Loop through and process engineer records
    Select all material records
    Loop through and process material records
    How do I select the job detail, engineer and materials
    records, into say an
    array or a recordset for example. (if someone feels there is
    a better way
    then please feel free to suggest.)?
    An example of my XML file is below
    TIA
    Bren
    <?xml version="1.0" ?>
    - <jobs>
    - <job_detail>
    <j_recid>4041</j_recid>
    <j_numofvisits>1</j_numofvisits>
    <j_client>800</j_client>
    <j_site>864</j_site>
    <j_workdone />
    <j_suppliervisit>N</j_suppliervisit>
    <j_furtherwork>N</j_furtherwork>
    <j_returnvisit>N</j_returnvisit>
    <j_furtherworksdesc />
    <j_tobequoted>N</j_tobequoted>
    <j_status>6</j_status>
    <j_enteredby>Yolanda Baker</j_enteredby>
    <j_e_signature>53,29,-1,-1,53,29,53,30,53,30,58,33,58,33,75,45,75,45,110,58,110,58,149,61 ,149,61,176,54,176,54,186,42,186,42,191,33,191,33,192,30,192,30,192,29,192,29,189,29,189,2 9,184,28,184,28,174,29,174,29,159,32,159,32,124,39,124,39,82,46,82,46,54,50,54,50,43,50,43 ,50,38,50,38,50,37,49,37,49,38,49,38,49,39,49,39,49,57,49,57,49,109,54,109,54,180,56,180,5 6,239,54,239,54,277,46,277,46,281,45,281,45,281,44</j_e_signature>
    <j_e_name>Test Engineer</j_e_name>
    <j_e_position>Engineer</j_e_position>
    <j_e_comments />
    <j_e_sigdate>20/11/2008</j_e_sigdate>
    <j_c_signature>54,7,-1,-1,54,7,54,8,54,8,54,10,54,10,57,19,57,19,65,30,65,30,81,46,81,46, 100,58,100,58,121,62,121,62,144,63,144,63,163,57,163,57,181,47,181,47,190,41,190,41,200,36 ,200,36,207,33,207,33,207,31,207,31,201,29,201,29,197,27,197,27,193,27,193,27,184,28,184,2 8,172,31,172,31,160,34,160,34,146,40,146,40,140,43,140,43,138,45,138,45,137,45,137,45,136, 45,136,45,135,46,135,46,131,50,131,50,127,56,127,56,124,58,124,58,124,57,124,57,124,56,124 ,56,132,54,132,54,151,50,151,50,178,44,178,44,204,39,204,39,220,39,220,39,228,40,228,40,23 0,41,230,41,233,44,233,44,237,49,237,49,246,57,246,57,254,60,254,60,263,63,263,63,264,63</ j_c_signature>
    <j_c_name>Mr Blobby</j_c_name>
    <j_c_position>Fat Chap</j_c_position>
    <j_c_comments />
    <j_c_sigdate>20/11/2008</j_c_sigdate>
    <j_qos>3</j_qos>
    <j_notified>N</j_notified>
    <j_processed>N</j_processed>
    <j_active>Y</j_active>
    </job_detail>
    - <job_detail>
    <j_recid>4042</j_recid>
    <j_numofvisits>1</j_numofvisits>
    <j_client>798</j_client>
    <j_site>865</j_site>
    <j_workdone>As per job sheet</j_workdone>
    <j_suppliervisit>N</j_suppliervisit>
    <j_furtherwork>N</j_furtherwork>
    <j_returnvisit>N</j_returnvisit>
    <j_furtherworksdesc />
    <j_tobequoted>N</j_tobequoted>
    <j_status>6</j_status>
    <j_enteredby>Yolanda Baker</j_enteredby>
    <j_e_signature>44,20,-1,-1,44,20,43,20,43,20,42,20,42,20,39,21,39,21,34,25,34,25,28,29,28 ,29,25,32,25,32,22,38,22,38,22,41,22,41,22,43,22,43,22,44,22,44,26,44,26,44,38,45,38,45,64 ,42,64,42,104,36,104,36,135,33,135,33,165,31,165,31,178,31,178,31,185,33,185,33,189,35,189 ,35,192,38,192,38,197,41,197,41,203,43,203,43,211,49,211,49,220,51,220,51,228,52,228,52,23 1,53,231,53,232,49,232,49,233,43,233,43,230,34,230,34,229,31,229,31,224,27,224,27,213,24,2 13,24,195,23,195,23,171,27,171,27,152,32,152,32,141,36,141,36,138,36,138,36,137,37,137,37, 140,38,140,38,157,43,157,43,191,46,191,46,230,48,230,48,242,48</j_e_signature>
    <j_e_name>Test Engineer</j_e_name>
    <j_e_position>Engineer</j_e_position>
    <j_e_comments>Great job</j_e_comments>
    <j_e_sigdate>20/11/2008</j_e_sigdate>
    <j_c_signature>31,13,-1,-1,31,13,31,14,31,14,31,16,31,16,34,23,34,23,36,32,36,32,38,42,38 ,42,42,53,42,53,43,59,43,59,44,60,44,60,44,59,44,59,44,57,44,57,45,52,45,52,50,44,50,44,56 ,38,56,38,64,33,64,33,74,28,74,28,86,23,86,23,98,21,98,21,111,20,111,20,121,20,121,20,123, 20,123,20,123,21,123,21,126,24,126,24,126,27,126,27,130,33,130,33,133,37,133,37,135,42,135 ,42,139,47,139,47,142,51,142,51,144,54,144,54,151,57,151,57,157,57,157,57,164,52,164,52,17 1,46,171,46,180,42,180,42,193,38,193,38,203,38,203,38,215,38,215,38,228,38,228,38,238,39,2 38,39,245,39,245,39,247,39,247,39,248,38</j_c_signature>
    <j_c_name>Mr Blobby 2</j_c_name>
    <j_c_position>Fat Chap 2</j_c_position>
    <j_c_comments>Very well done</j_c_comments>
    <j_c_sigdate>20/11/2008</j_c_sigdate>
    <j_qos>1</j_qos>
    <j_notified>N</j_notified>
    <j_processed>N</j_processed>
    <j_active>Y</j_active>
    </job_detail>
    - <engineers>
    <m_recid>1</m_recid>
    <m_jid>4041</m_jid>
    <m_operative>18</m_operative>
    <m_starttime>07:00</m_starttime>
    <m_finishtime>17:00</m_finishtime>
    <m_traveltime>1</m_traveltime>
    <m_jobdate>20/11/2008</m_jobdate>
    </engineers>
    - <engineers>
    <m_recid>2</m_recid>
    <m_jid>4041</m_jid>
    <m_operative>3</m_operative>
    <m_starttime>07:00</m_starttime>
    <m_finishtime>17:00</m_finishtime>
    <m_traveltime>1</m_traveltime>
    <m_jobdate>20/11/2008</m_jobdate>
    </engineers>
    - <engineers>
    <m_recid>3</m_recid>
    <m_jid>4042</m_jid>
    <m_operative>3</m_operative>
    <m_starttime>07:00</m_starttime>
    <m_finishtime>17:00</m_finishtime>
    <m_traveltime>1</m_traveltime>
    <m_jobdate>20/11/2008</m_jobdate>
    </engineers>
    - <engineers>
    <m_recid>4</m_recid>
    <m_jid>4042</m_jid>
    <m_operative>25</m_operative>
    <m_starttime>09:00</m_starttime>
    <m_finishtime>17:00</m_finishtime>
    <m_traveltime>1</m_traveltime>
    <m_jobdate>20/11/2008</m_jobdate>
    </engineers>
    - <engineers>
    <m_recid>5</m_recid>
    <m_jid>4042</m_jid>
    <m_operative>8</m_operative>
    <m_starttime>07:00</m_starttime>
    <m_finishtime>17:00</m_finishtime>
    <m_traveltime>1</m_traveltime>
    <m_jobdate>20/11/2008</m_jobdate>
    </engineers>
    - <materials>
    <mu_recid>1</mu_recid>
    <mu_jid>4041</mu_jid>
    <mu_qty>1</mu_qty>
    <mu_description>Widget</mu_description>
    <mu_location>Van</mu_location>
    </materials>
    - <materials>
    <mu_recid>2</mu_recid>
    <mu_jid>4042</mu_jid>
    <mu_qty>20</mu_qty>
    <mu_description>2.5 T & E</mu_description>
    <mu_location>Van</mu_location>
    </materials>
    </jobs>

    And there was much rejoiceing Yayyy! :-)
    I have sorted it, if anyone is interested then see my code
    below. The code
    below writes to the screen for testing purposes. To insert
    into a DB then
    just build your SQL statement and Insert or Update DB as you
    would normally
    instead of writing to screen.
    Code
    <%
    Dim objXML
    Set objXML = Server.CreateObject("Microsoft.XMLDOM")
    objXML.async = False
    objXML.load
    (Server.MapPath("/mwsclient/files/upload/Test_Engineer.xml"))
    If objXML.parseerror.errorCode <> 0 Then
    Response.Write(objXML.parseError.reason)
    Else
    Set objNodeList =
    objXML.documentElement.selectNodes("job_detail")
    For i = 0 To (objNodeList.length - 1)
    Response.Write("JOB RECORD<br>")
    For x = 0 To (objNodeList.Item(i).childNodes.length - 1)
    Response.Write(objNodeList.Item(i).childNodes(x).nodeName
    Response.Write(objNodeList.Item(i).childNodes(x).xml &
    "<br>")
    Next
    Response.Write("<br>")
    Next
    End If
    Set objXML = Nothing
    %>
    Output:
    JOB RECORD
    j_recid - 4041
    j_numofvisits - 1
    j_client - 800
    j_site - 864
    j_workdone -
    j_suppliervisit - N
    j_furtherwork - N
    j_returnvisit - N
    j_furtherworksdesc -
    j_tobequoted - N
    j_status - 6
    j_enteredby - Yolanda Baker
    j_e_signature - 44
    j_e_name - Test Engineer
    j_e_position - Engineer
    j_e_comments -
    j_e_sigdate - 20/11/2008
    j_c_signature - 63
    j_c_name - Mr Blobby
    j_c_position - Fat Chap
    j_c_comments -
    j_c_sigdate - 20/11/2008
    j_qos - 3
    j_notified - N
    j_processed - N
    j_active - Y
    JOB RECORD
    j_recid - 4042
    j_numofvisits - 1
    j_client - 798
    j_site - 865
    j_workdone - As per job sheet
    j_suppliervisit - N
    j_furtherwork - N
    j_returnvisit - N
    j_furtherworksdesc -
    j_tobequoted - N
    j_status - 6
    j_enteredby - Yolanda Baker
    j_e_signature - 48
    j_e_name - Test Engineer
    j_e_position - Engineer
    j_e_comments - Great job
    j_e_sigdate - 20/11/2008
    j_c_signature - 38
    j_c_name - Mr Blobby 2
    j_c_position - Fat Chap 2
    j_c_comments - Very well done
    j_c_sigdate - 20/11/2008
    j_qos - 1
    j_notified - N
    j_processed - N
    j_active - Y

  • Urgent help importing an XML file

    Hi all,
    I'm currently exporting my XML files from Magento, the webshop client. However I cannot use the XML task in ETL because I get the error about namedspaces. I can open the XML file itself no problem, it contains a few columns with data, some empty values.
    What I do to solve the error is create the script in ETL that converts the XML file so that I can make the SDX schema. The ETL script itself works 
    <?xml version="1.0" encoding="utf-8" ?> 
    <xsl:stylesheet version="1.0"         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
      <xsl:output method="xml" indent="no" /> 
      <xsl:template match="/|comment()|processing-instruction()"> 
        <xsl:copy> 
          <xsl:apply-templates /> 
        </xsl:copy> 
      </xsl:template> 
      <xsl:template match="*"> 
        <xsl:element name="{local-name()}"> 
          <xsl:apply-templates select="@*|node()" /> 
        </xsl:element> 
      </xsl:template> 
      <xsl:template match="@*"> 
        <xsl:attribute name="{local-name()}"> 
          <xsl:value-of select="." /> 
        </xsl:attribute> 
      </xsl:template> 
    </xsl:stylesheet> 
    But when I open the newly created file he looks really odd: See below for the initial file and the new file (based on how many times I open the file, i get another weird look...). Please help me out it's killing me :)

    Or you can apply a XSLT transform as per http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
    Arthur My Blog

  • Write XML file on client

    I'm trying to generate XML files on a client machine. I'm using SQL*Plus Instant Client v 10.1.0.4.0 connected to DB version 10.1.0.3.0. I've created a view of XMLType and am able to select XML from this view. I've been unable to figure out a way to generate well-formed XML via a Spool command and Select statement as Sqlplus returns the XML as one row and has problems with line wrapping, embedded spaces, and also including the SQL command in the spooled output. I've tried many different permutations of Set commands to no avail.
    Is there a way to generate a valid XML file from Sqlplus on a client machine using the Spool command? If not Sqlplus, any other suggestions?
    Thanks,
    Glenn

    I would be inclined to write a pipelined function to take a clob, and break it up into pieces (perhaps after a '>').
    Here's an example of a pipelined function, which you can modify to suit your needs, such as working with CLOBs. You may also want to add more intelligence to it, such as checking for when the chunk is longer than 2000 characters.
    CREATE TYPE tvc2000 AS TABLE OF VARCHAR2(2000)
    CREATE OR REPLACE
    FUNCTION chopper
      p_string IN VARCHAR2
    RETURN tvc2000
    PIPELINED
    IS
      l_len NUMBER := LENGTH(p_string);
      l_out NUMBER := 0;
      l_pos NUMBER;
    BEGIN
      l_pos := INSTR(p_string, '>', l_out+1);
      WHILE l_pos > 0 LOOP
        PIPE ROW(SUBSTR(p_string, l_out+1, l_pos - l_out));
        l_out := l_pos;
        l_pos := INSTR(p_string, '>', l_out+1);
      END LOOP;
      IF l_out < l_len THEN
        PIPE ROW(SUBSTR(p_string, l_out+1, l_len - l_out));
      END IF;
      RETURN;
    END;
    SELECT *
    FROM TABLE(chopper('abc>def>'))
    COLUMN_VALUE
    abc>
    def>Tak

Maybe you are looking for