Converting XMLSequence to XMLDocument

I use a PreparedXQuery class to run an XQuery.
The result is an XMLSequence instance.
I want to convert it to an XMLDocument.
How can I do that?
Regards
Roger van de Kimmenade

XMLDocument d = new XMLDocument();
d.appendChild(yourfragment);

Similar Messages

  • It is possible to convert String to XMLDocument?

    I use XML SQL Utility to generate an XML document from the results of a query. I want to apply XSLT on this xml document.
    The problem is that XSU generates the document in String format. Or I use XSLProcessor.processXSL, and this method needs to parameters stylesheet and XMLDocument.
    So, my question is :It is possible to convert String to XMLDocument?
    Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Use getXMLDOM() instead of getXMLString() on the OracleXMLQuery object. This returns you a DOM representation instead of a string, avoiding parsing.<HR></BLOCKQUOTE>
    Hi
    I'm reading about how " generate an XML document from the results of a query" i exactly want to do this but i need to create the XML file not only generate it. How I "create" the XML file?. Because, I need to manipulate later my XML file.
    Thanks for any help.
    null

  • Converting XMLSEQUENCE to XMLTABLE

    So we've gotten part-way into converting all of our code using XMLSEQUENCE to instead use XMLTABLE and everything compiles fine. However, we now realize (a bit late, I realize, and it is documented) that the PASSING clause with XMLTABLE requires a SQL expression.
    All of the XML queries that we use involve the evaluation of a PL/SQL variable - for example, an XMLTYPE variable passed into a procedure. The first example below is using a SQL expression (the return from the XMLTYPE function) in the PASSING clause and this works, but the second example tries to refer to a PL/SQL variable which generates an exception.
    Is XMLTABLE totally off the table if you are working with PL/SQL variables, same as if you attempt to refer to a package variable within a SQL statement?
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    sql>begin
      2      for rec_pkg in (select *
      3                        from xmltable('/data/packages/package'
      4                                      passing xmltype(
      5  '<data>
      6     <packages>
      7      <package upc="00054645172462">
      8      </package>
      9      <package upc="00054645413060">
    10      </package>
    11    </packages>
    12  </data>')
    13                                      columns package_upc varchar2(14) path '@upc')
    14                                     ) loop 
    15      dbms_output.put_line( 'Package UPC: ' || rec_pkg.package_upc);
    16    end loop;
    17  end;
    18  /
    Package UPC: 00054645172462
    Package UPC: 00054645413060
    PL/SQL procedure successfully completed.
    sql>declare
      2   v_xml xmltype := xmltype(
      3  '<data>
      4     <packages>
      5      <package upc="00054645172462">
      6      </package>
      7      <package upc="00054645413060">
      8      </package>
      9    </packages>
    10  </data>');
    11  begin
    12      for rec_pkg in (select *
    13                        from xmltable('/data/packages/package'
    14                                      passing v_xml
    15                                      columns package_upc varchar2(14) path '@upc')
    16                                     ) loop 
    17      dbms_output.put_line( 'Package UPC: ' || rec_pkg.package_upc);
    18    end loop;
    19  end;
    20  /
    declare
    ERROR at line 1:
    ORA-19112: error raised during evaluation:
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at line 12

    Works fine for me:
    declare
        v_xml xmltype := xmltype(
       '<data>
          <packages>
           <package upc="00054645172462">
           </package>
           <package upc="00054645413060">
           </package>
         </packages>
       </data>');
    begin
           for c in (select * from v$version) loop
              dbms_output.put_line(c.banner);
           end loop;
           for rec_pkg in (select *
                             from xmltable('/data/packages/package'
                                           passing v_xml
                                           columns package_upc varchar2(14) path '@upc')
                                          ) loop 
           dbms_output.put_line( 'Package UPC: ' || rec_pkg.package_upc);
         end loop;
    end;
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE     10.2.0.3.0     Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Package UPC: 00054645172462
    Package UPC: 00054645413060
    Statement processed.

  • Casting/Converting XMLType to XMLDocument?

    Hi all,
    the xml-documents i retreive from the database have the format of oracle.xdb.XMLType.
    In my program i use the oracle.xml.differ.XMLDiff class, which needs the xml-document in the format oracle.xml.parser.v2.XMLDocument.
    What is the easiest way to cast/convert an XMLType into an XMLDocument ?
    thanks, Bart

    According to the 9i r2 documentation, the code shown below should work (see http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb09jav.htm#1656):
    What is the alternative with a 10g r1 database?
    Example 9-1 XMLType Java: Using JDBC to Query an XMLType Table
    The following is an example that illustrates using JDBC to query an XMLType table:
    import oracle.xdb.XMLType;
       OraclePreparedStatement stmt = (OraclePreparedStatement)
    conn.prepareStatement("select e.poDoc from po_xml_tab e");
           ResultSet rset = stmt.executeQuery();
           OracleResultSet orset = (OracleResultSet) rset;
    while(orset.next())
           // get the XMLType
           XMLType poxml = XMLType.createXML(orset.getOPAQUE(1));
           // get the XMLDocument as a string...
    Document podoc = (Document)poxml.getDOM();
            }

  • Problem casting org.w3c.dom.Document to oracle.xml.parser.v2.XMLDocument

    I have the following problem:
    I get my xml-documents as an XMLType from the database and want to compare these using the supplied Oracle class oracle.xml.differ.XMLDiff (i use the java version supplied with Oracle 9i r2).
    XMLType.getDOM() returns the xml-document as a org.w3c.dom.Document,
    what i need for oracle.xml.differ.XMLDiff is a oracle.xml.parser.v2.XMLDocument.
    How can i cast/convert between these two formats?
    thanks!
    p.s. cross-posting with Re: Casting/Converting XMLType to XMLDocument? (but i think this forum is more relevant).

    Hi,
    thanks for the suggestion: i have written the code shown below. It results in a casting error.
    As far as i know, i don't use a oracle.xdb.dom.XDBDocument, i only use a oracle.xdb.XMLType as the input parameter for my conversion-method:
    any new suggestions ???
    p.s. the second method which is commented does work, but is a bit verbose.
       private static oracle.xml.parser.v2.XMLDocument convert2XMLDocument(XMLType xml) {
         // simple version (should work according to tech. doc. 9i r2/ 10g r1 database)
         oracle.xml.parser.v2.XMLDocument doc = null;
         try {
            // n.b. probleem is dat XMLType.getDOM() een w3c.Document object teruggeeft ipv een oracle.XMLDocument.
            System.out.println("convert2XMLDocument(): casting w3c.Document naar oracle.XMLDocument.");
            doc = (oracle.xml.parser.v2.XMLDocument) xml.getDOM(); // public org.w3c.dom.Document getDOM()
            System.out.println("convert2XMLDocument(): done casting w3c.Document naar oracle.XMLDocument.");
         catch (Exception e) {
            e.printStackTrace(System.out);
        return doc;
       private static XMLDocument convert2XMLDocument(XMLType xml) {
         // complex version: works ok !!!
         XMLDocument doc = null;
         try{
            DOMParser parser  = new DOMParser();
            parser.setValidationMode(oracle.xml.parser.v2.XMLParser.NONVALIDATING);
            parser.setPreserveWhitespace (true);   
            parser.parse(new StringReader(xml.getStringVal()));
            doc = parser.getDocument();
        catch ( XMLParseException e ) {
          e.printStackTrace(System.out);
        catch ( SQLException e ) {
          e.printStackTrace(System.out);
        catch ( Exception e ) {
          e.printStackTrace(System.out);
        return doc;
    convert2XMLDocument(): casting w3c.Document naar oracle.XMLDocument.
        java.lang.ClassCastException: oracle.xdb.dom.XDBDocument
         at pnb.bdb.xml.testJDBC.convert2XMLDocument(testJDBC.java:305)
         at pnb.bdb.xml.testJDBC.main(testJDBC.java:187)

  • Using ORACLE JMS

    I am trying to send a message that includes XML in the TextMessage body using JMS class.
    My question is how do I trasform XMLDocument into the String so I can use it in the TextMessage body. Later I would like to retrieve that string as XMLDocument.
    If somebody has a sample or suggestion how to do that I would really appreciate it.
    null

    HI Vladimir,
    Converting XMLDocument to String
    ==================================
    I am assuming the XMLDocument you wish to convert to String is in variable d
    java.io.StringWriter sw = new StringWriter();
    d.print(new PrintWriter(sw));
    String returnString = sw.getBuffer().toString();
    Converting String to XMLDocument
    ===================================
    Again the String you wish to convert is asusmed to be in variable xmlString.
    StringReader sr = new StringReader(xmlString);
    DOMParser parser = new DOMParser();
    parser.parse(sr);
    XMLDocument xd = (XMLDocument)parser.getDocument();
    Hope this helps in your work.
    regards
    hemant
    null

  • Generating an XML file in local machine

    Hi,
    I have a requirement in Oracle apps forms:
    When i click a button in Oracle forms from front end, the xml file needs to be generated and saved in my local desktop in some path.
    e.g C:/siva/temp.xml
    I mean when we click a button in R12 applications, the file needs to be saved in my local desktop.
    Please anyone suggest a way forward.

    Hi,
    Using the Forms2XML Conversion Tool in a Java Program
    You can pass the Forms2XML tool a JdapiModule Java object (class oracle.forms.jdapi.JdapiModule) and dump its objects and properties to an XMLDocument (class oracle.xml.parser.v2.XMLDocument). For example:
    // get the modules in the session
    JdapiIterator mods = Jdapi.getModules();
    // ... and iterate round them
    while(mods.hasNext())
    JdapiModule mod = (JdapiModule)mods.next();
    Forms2XML converter = new Forms2XML(
    XMLDocument doc = converter.dumpModule(false);
    Note that the Boolean argument taken by the dumpModule() method instructs converter to dump all properties to the XMLDocument doc, not just those which are overridden.
    Once you have the module as a XMLDocument object, you could then use the XDK classes to manipulate it. For example, you could traverse it, remove or add objects, change properties, copy objects into other modules that are also saved as XMLDocument objects, and more—all programmatically.
    Check link for more info: http://docs.oracle.com/cd/E14373_01/migrate.32/e13368/appmgr_forms.htm#CHDEBFAD
    Hope it Helps!!!!
    Regards,
    Yuvaraj

  • Flash island WDA Simulate DataSources Input for Development

    Hello,
    Does anybody know how I can simulate a DataSource that comes from the WDA to the Flash-Island.
    I am trying to create a FlashIsland and I looked at the function set dataSource example from Thomas Jung's WDA-GoogleMap.
    During development for the flex project I would like to use some example data the would be send by the WDA to my FlashIsland.
    I would like to fill that data during the init() of my Flex project. The data will only be pushed to the FlashIsland so no 'two-way' binding is needed.
    e.g.: I know that in my WDA I have defined a DataSource named dataSource, which contains three Properties (var1, var2, var3).
    The DataSource is a table containing e.g. three entries.
    Any help is appreciated.
    Leon

    Hello Leon,
    >>Does anybody know how I can simulate a DataSource that comes from the WDA to the Flash-Island.
    To simulate the data, the better approach would be to create an xml file with the simulated data and read that xml into an arraycollection and call the set method of the datasource.
    As you have one datasource with 3 properties, let me explain with an example:
    1. Create an xml file data.xml and enter the following in that file:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <root>
      <item>
        <userID>12345</userID>
       <firstName>User</firstName>
       <lastName>xyz</lastName>
      </item>
      <item>
        <userID>12346</userID>
       <firstName>User2</firstName>
       <lastName>xyz</lastName>  </item>
    </root>
    2. You have to define a HTTPService to read the xml file. Put the following mxml code in your flex application file.
    <mx:HTTPService id="service"
                url="data.xml"
                contentType="application/xml"
                resultFormat="xml"
                result="serv_result(event);"
                fault="serv_fault(event);" />
    3.  add the following code in the script block of flex application file.
    private var simulatedData:ArrayCollection = new ArrayCollection;
          private function serv_result(evt:ResultEvent):void {
                    /* Convert XMLNode to XMLDocument. */
                    var xmlStr:String = evt.result.toString();
                    var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
                    var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
                    var resultObj:Object = decoder.decodeXML(xmlDoc);
                    var arr:ArrayCollection = new ArrayCollection;
                    arr.addItem(resultObj.root.item);
                    simulatedData = ArrayCollection(arr.getItemAt(0));
    private function serv_fault(evt:FaultEvent):void {
                    Alert.show("Not able to load data from xml" + evt.message); 
    private function readXML():void{
    service.send();
    4. Call readXML() method inside the event handler of initialize event of the flex application. And define an event handler applicationCompleteHandler for applicationComplete event of flex application.
    Inside applicationCompleteHandler, call the set method of datasource in the following way:
    private function applicationCompleteHandler():void
                    datasource=simulatedData; //datsource is the setter method here
    the setter method datasource can be the same as the one you use to read data from WDA.
    Please let me know if you need more info!
    Regards,
    Srilatha

  • Convert the xml into a xmldocument

    Hi All,
    I have created a xml using the xmlbeans (the problem is the root element extends xmlobject), now is it possible to convert the xml created into a xmldocument(standards) , so that i provide a common interface and the application can be binding technology neutral.

    Hi Raghu,
    I'm unsure of the specific type you want to convert into. Please provide additional details.
    FYI XmlObject does provide a toString() method which will provide you with a test representation of the XmlObject.
    cheers
    Raj

  • Convert PL?SQL xmldom.DOMDocument to Java XMLDocument

    My program generates a PL/SQL CLOB containing XML. I can parse this on the server and create a PL/SQL xmldom.DOMDocument. However, I would like to be able to pass this back to a Java class via JDBC. I can do this with the CLOB, but I can't figure out how to define the return-type for the PL/SQL XML document to read it back into a Java XMLDocument.
    Any ideas?
    Thanks,
    Chris

    Did you ever find out how to do this? I am faced with the same
    problem. Any help would be greatly appreciated.
    Cheers,
    Tom

  • Returning an XmlDocument from an external function?

    Hi,
    In an attempt to simplify my XQueries, I have started looking at writing some of the more complex functions in Java and calling them via an XmlExternalFunction.
    This seems fine, except that I have an issue with returning a constructed document (or any node set). The only way I have found to return a document without it being destroyed is to put it into a temporary database first. Here is the end of my function. I have written a convenience function that converts a DOM Xml Document into a dbxml XmlDocument (DomToXmlDbDoc).
         XmlResults results = mgr.createResults();
         XmlDocument result = DomToXmlDbDoc(doc);
         XmlContainer tmp = mgr.openContainer(txn, "_tmp.dbxml");
         result.setName(UUID.randomUUID().toString());
         putDocument(tmp, result);
         tmp.close();
         XmlValue value = new XmlValue(result);
         results.add(value);
         return results;
    I would prefer not to have to use the temporary storage in the middle as it is inefficient and rather untidy, but the following just gives a blank result.
         XmlResults results = mgr.createResults();
         XmlDocument result = DomToXmlDbDoc(doc);
         XmlValue value = new XmlValue(result);
         results.add(value);
         return results;
    Best Regards
    Pete.

    Hi,
    this is a bug in DB XML, namely in Java bindings. I could try to search a patch for this (which is not very well tested though) and send you by email if you tell me your address.
    Vyacheslav

  • Problem in converting ASCII value in Dev. and Production

    Hi...
    The ASCII values for # differ in the development and the production system.
    The code below (value 0009 ) populates # in the variable lv_sep.
    DATA: lv_sep TYPE x.
    FIELD-SYMBOLS : <field> TYPE x.
    ASSIGN lv_sep TO <field> CASTING TYPE x.
    <field> = 0009.
    The the development # = 0009 and in production # = 1000.
    Need to know why is this happening.

    How do you get the XML document? Do you use XSU? You can use:
    String str = qry.getXMLString();
    to get the result XML document in String.
    XSU will escape all of the < and >. Or the the XML document in
    one of the column will make the result XML doc not well-formed.
    Not quite understand your problem. You can send me your test
    case.
    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "<" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

  • Inserting XML document into XDB fails with can't convert to OPAQUE

    Hi,
    When I try to insert a document using oracle 9.2.0.5 client software into a 9.2.0.5 database, with the following code:
    void insertDocument(String document) {
    XMLType xt = XMLType.createXML(connection, document);
    PreparedStatement ps = connection.prepareStatement("insert into xmldocuments values(?)");
    ps.setObject(1, xt);
    ps.executeUpdate();
    The setObject function always throws an exception (after a very long time) with:
    java.sql.SQLException: Fail to convert to internal representation: OPAQUE()
    This also fails when we use the InputStream and org.w3c.xml.Document variants.
    We use the OCI driver, otherwise we get errors retrieving the documents from XMLDB.
    What is going wrong here?

    David,
    If you search through the historical data in this list there are previous post regarding opaque.
    These may be useful. Possibly your reaching the size limit.

  • Strange problem in converting between XML to string and vice versa

    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "&lt;" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

    How do you get the XML document? Do you use XSU? You can use:
    String str = qry.getXMLString();
    to get the result XML document in String.
    XSU will escape all of the < and >. Or the the XML document in
    one of the column will make the result XML doc not well-formed.
    Not quite understand your problem. You can send me your test
    case.
    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "<" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

  • Unable to cast object of type OracleXmlType to type XmlDocument

    Hello All:
    I have an Oracle Procedure that is taking an XML Document as an output parameter.
    oCommand.Parameters.Add("errorrecord", OracleDbType.XmlType).Value = System.DBNull.Value;
    oCommand.Parameters["errorrecord"].Direction = System.Data.ParameterDirection.Output;
    When I try to cast this as an XmlDocument so I can set it to my ErrorRecord variable (defined as XmlDocument) and pass it back out of the Web-Service
    ErrorRecord = (XmlDocument)oCommand.Parameters["p_errorrecord"].Value;
    I get the following error: "Unable to cast object of type 'Oracle.DataAccess.Types.OracleXmlType' to type 'System.Xml.XmlDocument'"
    How do I cast / convert the Oracle XMLType back to a .Net XMLDocument to pass out of the function?
    Thanks

    No, I have not tried that yet, but I admit I don't fully understand the syntax in the document posted.
    oCommand.Parameters.Add("p_errorrecord", OracleDbType.XmlType).Value = System.DBNull.Value;
    ErrorRecord = GoCommand.Parameters["errorrecord"].Value; (this is returned as XmlType)
    I don't quite understand the syntax in the posted URL:
    Declaration
    // C#
    public XmlDocument GetXmlDocument();
    How am I to use this to get the XMLDocument?

Maybe you are looking for

  • ITunes Has Stopped Working (10.3.1)?

    So before I downloaded the new iTunes, it kept saying "iTunes has stopped working." when I tried to open it. After multiple tries, I finally resorted to uninstalling it, and installing the new version. Still, it says "iTunes has stopped working." I t

  • Graphics issues with MacBook Pro 15-inch Late 2011 model

    I have a MB Pro 15-inch late 2011 (2.4GHz Core i7) and recently I started to get random screen glitches while working on photoshop and illustrator and then eventually the screen went totally blank and so I paid to have the graphics chip replaced (as

  • Suggestions for a stylus and drawing app

    I want to do some simple freehand drawing on my iPad.  I know nothing about the technology involved, other than the fact that I know it can be done. Stylus:  Can someone suggest a good stylus?  I've heard of styluses that will make a thin or thick li

  • Preparing never seems to stop

    I was traveling for a while and didn't have my external backup drive with me. So my machine was not backed up for 40 days. Now that I am home, Time Machine is trying to back up. However, it starts preparing for the backup but never gets around to doi

  • 'Some of the application components are missing from the Application directory. Please reinstall the application.'

    I tried opening PS and this message popped up 'Some of the application components are missing from the Application directory. Please reinstall the application.' I cannot find the Reinstall button?