Problem in parsing XML

Hello

Any1 can you please tell me how to do Xml parsing in Blackberry. I'm a bit confused by it.

Assume that it is my link:

{keyword: "keword", url: "videoUrl"}

While parsing xml:

String keyword1 ="";

element.getName.equalsIgnoreCase ("keyword");

keyword1 = Element.GetText ();

is she writing?

Hey its done.

Tags: BlackBerry Developers

Similar Questions

  • Problem with parsing XML with html as part of the node content

    Hi all

    I am facing problem with XML parsin when the node has a HTML content, if the node does not have any html content then it works fine. Similar analysis logic works for Java Standard, but not for the Blackberry API. I have an obligation to remove not HTML content prior to analysis. As that would display in the browser.

                              String xml="" +
                    "<p> Dummy content </p> " +
                    "" +
                    "";
                              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder dBuilder;
                Document doc;
                bis = new ByteArrayInputStream(xml.getBytes("UTF-8")); 
    
                dBuilder = dbFactory.newDocumentBuilder();
    
                doc = dBuilder.parse(bis);
                doc.getDocumentElement().normalize();
    
                NodeList nList = doc.getElementsByTagName("disclaimer");
    
                Element activeTagElmnt = (Element) nList.item(0);
                NodeList activeTag = activeTagElmnt.getChildNodes(); 
    
                tagValue=((Node) activeTag.item(0)).getNodeValue();
                              System.out.println(tagValue); //This prints "<" with HTML content. If i remove HTML then "Dummy Content" is printed
    

    If I need to remove html content, then I would need to reformat the content according to the HTML as the newline to a linebreak.

    Any suggestions would be helpful.

    Thank you

    Sandeep

    I feel xml parser was mature enough to handle these characters if sills, you get the error explore CDATA. It might help you.

  • Problem of Parsing XML

    Hi all

    I have a XML Data...

    As

    
    
        
        
        
        
        
        
        
        
        
        
    
    
    

    I want to get the name of node and its values...

    But I'm not able to analyze and get access those.

    I tried using DOM parser.

    Everyone please help.

    Thanks and greetings

    Stephenson

    Similar to what manojkbaghela wrote:

    DocumentBuilderFactory docFact = DocumentBuilderFactory.newInstance ();
    DocumentBuilder docBuilder = docFact.newDocumentBuilder ();

    Doc document = docBuilder.parse ({inputSource file});
    doc.getDocumentElement () .normalize ();
    NodeList listOfRecords = doc.getElementsByTagName ("node");
    int totalElements = listOfRecords.getLength ();

    for (int s = 0; s< totalelements;="" s++)="">

    Element myElement = listOfRecords.item (s) (element);

    LinkID = myElement.getAttribute ("LinkID") string;
    String subject = myElement.getAttribute ("Topic");
    Position of the string = myElement.getAttribute ("heading");

    }

  • problem in parsing xml with validation

    Hello

    I use webservice and xml parsing allows to get data from it, he worked successfully when I put data valid that webservice are made up.

    But now, I want that if I put some data not valid in URLs for validation purposes.

    When I put the wrong data, it shows me exception. So, how I can handle it when the user put data not valid.

    Please help me .it's urgent.

    Thanks for the reply,

    I solved it myself.

  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • Err: ORA-31011: failed to parse XML

    Hello

    While inserting the XML code in the table, I faced slot problem, Pls suggest a way out of the code.
    Your help is appreciate.
    I'm using the version of Oracle - 10.2.0.2.0

    Err: ORA-31011: failed to parse XML
    ORA-19202: an error has occurred in the processing of XML
    LPX-00234: the 'xsi' namespace prefix is not declared
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 254
    ORA-06512: at line 1

    -Step 1
    CREATE TABLE EMP (EMPCODE NUMBER (8), EMPNAME VARCHAR2 (100), THE NUMBER OF EMPDEPTNO (8), NUMBER EMPSAL (34.2));
    /
    -Step 2
    BEGIN
    FOR X IN (SELECT * FROM USER_OBJECTS S WHERE ROWNUM < = 50)
    LOOP
    INSERT INTO VALUES EMP (X.OBJECT_ID, X.OBJECT_NAME, 20, X.OBJECT_ID + 10);
    END LOOP;
    COMMIT;
    END;
    /
    -Step 3
    create the table EMPXML (XMLCLOB XMLTYPE);
    /
    -Step 4
    DECLARE
    v_xmldata CLOB.
    v_tmpdata CLOB.
    v_xmltype XMLTYPE.
    BEGIN
    DBMS_LOB.CREATETEMPORARY (v_tmpdata, false);
    v_xmldata: = ' <? XML version = "1.0" encoding = "UTF-8"? > ';

    SELECT Xmlelement ("employee",

    XmlAttributes ("http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" AS ")
    "xmlns:ns0,"
    ' http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope ServiceEnvelope.xsd > ' AS
    ("xsi: schemaLocation").
    XMLAGG (Xmlforest (AS Empcode "EmpID",
    EmpName AS "EmpName",.
    Empsal AS 'EmpSal'))) BY v_xmltype
    FROM Emp
    WHERE Empdeptno = 20;

    SELECT v_xmltype.getCLOBVal () IN the v_tmpdata FROM dual;

    DBMS_LOB. Append (v_xmldata, v_tmpdata);

    BEGIN
    INSERT IN EMPXML VALUES (xmltype (v_xmldata));
    EXCEPTION WHEN OTHERS THEN
    dbms_output.put_line ('Err: ' |) SQLERRM);
    END;
    END;
    /
    -Step 5
    SELECT * from empxml;
    /
    -Step 6
    DROP TABLE EMP PURGE;
    /
    -Step 7
    DROP TABLE EMPXML PURGE;
    /
    Thank you and best regards,
    Yogesh Nagle
    India

    What? Pepijn you provided the correct use of Xmlattributes and showed that your script would go without errors. What is the problem with his answer or it does not that you need it?

  • Parsing XML and get the attributes of a tag

    Hello

    When parsing XML for application of Cascades in C++, I am able to get the value of a tag as follows:

    00000

    But I also want to get the attributes of a tag:

    But I don't know how to get the 'CA' and 'California' attributes with my current code.  Can anyone help?  Here is the code I use to parse the XML code:

    void CMController::requestFinished(QNetworkReply* reply) {
    
        if (reply->error() == QNetworkReply::NoError) {
    
            QXmlStreamReader xml;
    
            QByteArray data = reply->readAll();
            xml.addData(data);
    
            QString zip;
            QString id;
            QString location;
    
            while (!xml.atEnd() && !xml.hasError()) {
    
                /* Read next element.*/
                QXmlStreamReader::TokenType token = xml.readNext();
    
                /* If token is just StartDocument, we'll go to next.*/
                if (token == QXmlStreamReader::StartDocument) {
                    continue;
                }
    
                /* If token is StartElement, we'll see if we can read it.*/
                if (token == QXmlStreamReader::StartElement) {
    
                    if (xml.name() == "zip") {
                        zip = xml.readElementText();
                    }
    
                    if (xml.name() == "id") {
                        ???
                    }
    
                    if (xml.name() == "location") {
                        ???
                    }
    
                }
    
            }
    
            emit succeeded(result);
    
        } else {
            emit failed();
        }
    
        reply->deleteLater();
    
    }
    

    Thank you!

    I found a working example:

    if(xml.name() == "state"){
        QXmlStreamAttributes attrib = xml.attributes();
        QStringRef ref = attrib.value("location");
        qDebug() << "location: " << ref;
    }
    
  • Problem in parsing Json

    I have a problem with parsing Json. While participating in the 1st time I would log on to the Console as

    "Jsonva length 21".
    JSON length 0 "

    After 2 or 3 attempts, I would log in the form

    "Jsonva length 21".
    JSON length 14 "

    Here I use to code analysis.

    BB::data :: JsonDataAccess ja;
    const QVariant jsonva = ja.loadFromBuffer (response);
    QList const externalip = jsonva.toList ();

    std::cout< "jsonva="" length1="" "="">< jsonva.size=""><>
    std::cout< "json="" length1="" "="">< externalip.size()=""><>

    Pls advice me what is the problem in my code.

    Sorry that was my problem. I have error in functionality.

    Thanks dude.

  • Widget to the Web service, parsing XML

    I worked on the communication with my web services and back to my widget.

    By using the code below, I was able to perform a GET and repay the XML, but I can't find data where I expect it to be node-wise when parsing XML. I return an object with 3 variables attached to it. I expect to be child nodes 1, 2, and 3. They proved to be 1, 3 and 5 nodes.

    Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

    XML response

    
    - http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
      1000
      Test Station
      105.285
      
    

    The widget code

    //****************** Ajax Logic ******************
    var xmlHttp;
    function getStationUpdate() {
    
        alert("in station update");
        xmlHttp = new XMLHttpRequest();
    
        var Posturl = "http://MachineIPGoesHERE:51107/Service1.asmx/HelloWorld2?";
        alert("after post url");
        xmlHttp.onreadystatechange = updateData;
        alert("after onReadyStateChange");
        xmlHttp.open("GET", Posturl, true);
        alert("after GET");
    
        xmlHttp.send(null);
    }
    
    function updateData() {
        if (xmlHttp.readyState == 4) {
            alert(xmlHttp.responseText);
            parser = new DOMParser();
            var xmlDoc = parser.parseFromString(xmlHttp.responseText, "text/xml");
    
            alert(xmlDoc.documentElement.childNodes[1].tagName + " " + xmlDoc.documentElement.childNodes[1].childNodes[0].nodeValue);
            //alert(xmlDoc.documentElement.childNodes[1].childNodes.length);
            //alert(xmlDoc.documentElement.childNodes[1].hasChildNodes());
            //alert(xmlDoc.documentElement.childNodes[2].hasChildNodes());
            //alert(xmlDoc.documentElement.childNodes[2].tagName + " " + xmlDoc.documentElement.childNodes[2].childNodes[0].nodeValue);
            alert(xmlDoc.documentElement.childNodes[3].tagName + " " + xmlDoc.documentElement.childNodes[3].childNodes[0].nodeValue);
            alert(xmlDoc.documentElement.childNodes[5].tagName + " " + xmlDoc.documentElement.childNodes[5].childNodes[0].nodeValue);
    
            alert(xmlDoc.documentElement.childNodes.length);
        }
    

    Web service

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Services;
    using System.Xml.Serialization;
    
    namespace WebService1
    {
        /// 
        /// Summary description for Service1
        /// 
        [WebService(Namespace = "http://tempuri.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        [System.ComponentModel.ToolboxItem(false)]
        // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
         [System.Web.Script.Services.ScriptService]
        public class Service1 : System.Web.Services.WebService
        {
    
            [WebMethod]
            public string HelloWorld()
            {
                return "Hello World";
            }
    
            [WebMethod]
            public myTestObj HelloWorld2()
            {
                myTestObj test = new myTestObj();
                return test;
            }
        }
    
        [Serializable]
        public class myTestObj
        {
            private int _StationID;
            private string _StationName;
            private double _Volume;
    
            [XmlElementAttribute(Order = 0)]
            public int StationID
            {
                get
                {
                    return this._StationID;
                }
                set
                {
                    this._StationID = value;
                }
            }
    
            [XmlElementAttribute(Order = 1)]
            public string StationName
            {
                get
                {
                    return this._StationName;
                }
                set
                {
                    this._StationName = value;
                }
            }
    
            [XmlElementAttribute(Order = 2)]
            public double Volume
            {
                get
                {
                    return this._Volume;
                }
                set
                {
                    this._Volume = value;
                }
            }
    
            public myTestObj()
            {
                StationID = 1000;
                StationName = "Test Station";
                Volume = 105.285;
            }
        }
    }
    

    > Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

    White space nodes?

  • IOError in IE but not in Firefox (problem possible crossdomain.xml)

    Yesterday I debugged If all goes well a problem that happens for our application in Internet Explorer but not in Firefox.

    This has to do with access to remote content from a separate domain.

    In all aspects, it SEEMS to be a problem of crossdomain.xml, but the fact that this arrises only problem in IE is what prompted me to post here.

    We have a solution in progress (in the bureaucratically speaking), but I want to check here.

    Our application is the field of "a.domain".

    It access a file xml on 'b.domain/xml/ '.

    And finally (this is the tricky part) it also accesses an xml file to "b.domain/forwardingPath/" which is actually transmitted to the 'c.domain/xml/ '.

    The crossdomain.xml is located at "b.domain/crossdomain.xml".

    The application of "b.domain/xml/anXMLFile.xml" works without any problem.

    The demand for the 'b.domain/forwardingPath/anotherXMLFile.xml' exists in Firefox but not in IE (remember, ACTUAL demand is sent to "c.domain/xml/anotherXMLFile.xml").

    In Internet Explorer, I get an IOError.

    I think that we need a proper crossdomain.xml file, also located in the "c.domain/crossdomain.xml" and put in this request.  I want to confirm is whether this interpretation is correct.  I'm not at all a person on the server side.  It's all of the elves and fairies for me.  And then finally, why the hell is this inconsistent behavior between IE and Firefox?  The version of flash player Firefox violates its own safety standards?

    I swap this in the stack overflow.  field-xml-issue http://StackOverflow.com/questions/7395931/ioError-in-IE-but-not-in-Firefox-possible-Cross

    I have ping our developers on this subject and this is what they have to say:

    "We did some work for the plugin around redirects andhence the correct behavior on Firefox.

    As far as I KNOW, on IE we don't get the redirection messages and may not participate in the decision-making process of security during redirection scenarios. This behavior is beyond our control.

    There is a workaround solution described in the AS3docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderCont ext.html #checkPolicyFile

    Here's the relevant paragraph:

    Be careful with checkPolicyFile if you are downloading anobject from a URL that can use HTTP redirects on the server side. Arealways policy files comes from the corresponding initial URL that you specify inURLRequest.url. If the final object comes from a different URL because of the HTTPredirects, the initially downloaded policy files might not applicableto the of the object's final URL, which is the URL that matters in security decisions. If you are in this situation, you can examine the value of ofLoaderInfo.url after receiving an orEvent.COMPLETE ProgressEvent.PROGRESS event, which tells you the final URL of the object. Then call the method theSecurity.loadPolicyFile () with a URL based on the object URL policy file ' sfinal. Then query the value of LoaderInfo.childAllowsParent until it becomes true. »

    Chris

  • Parsing XML in ColdFusion 5

    Hello there,

    It's not like there is a native way to parse XML in ColdFusion version 5.0. ColdFusion MX makes it easier to work with XML, but unfortunately I am working under Windows with a CF5 server.

    I've gotten to the point of use CFHTTP to retrieve XML content in a variable, but I don't know the best way to decompress the data in a query, or another structure that I can use to feed the rest of the model. I thought to save the content of a file and then a loop top, but something tells me that it is an inefficient way to do the job.

    I would like to avoid having to install any additional software, but if it's the only way to process XML in CF5, then I would be grateful for any recommendations on the best tools to evaluate or buy. Or if there is a way to do it in JavaScript, it would be great, too.

    Thanks for any help!

    try to use SoXML, it is a custom tag, is free and can be downloaded from the Adobe Exchange website

    --> Adobe Exchange link

    M

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • pls help... problem of parsing and XML datagrid... :(

    I'm building a small application using flex, php and mysqli...

    I'm trying to connect a DataGrid to a php... php analyzes an xml data for the flex... but when I run the program datagrid doesn't get filled... someone can help me... r my code snippets here...

    the name of the database of crm, the table name is led...

    the column names are, respectively, company, fname, and lname...

    <? PHP

    echo "<? XML version=\"1.0\" encoding =------"utf - 8\ '? > ';

    $conn = mysqli_connect ('localhost', 'root', ", 'crm');

    $query = "SELECT * from conduit."

    $result = mysqli_query ($conn, $query);

    echo '< leadsxml > ';

    While ($Row = mysqli_fetch_object ($result))
    {
    echo "< channel > < leadCompany >. $row-> the company. "< / leadCompany > < leadFirstName >. $row-> fname. "< / leadFirstName > < leadLastName >. $row-> lname. "< / leadLastName > < / leads >";
    }

    echo "< / leadsxml > ';

    mysqli_close ($conn);

    ? >

    and the flex part

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:HBox ' http://www.Adobe.com/2006/MXML " >

    < mx:HTTPService url = "getlead.php" id = "getleadHS" showBusyCursor = "true" useProxy = "false" method = "POST" / >

    < mx:DataGrid id = "leadDataGrid" width = "400" height = "240" dataProvider = "{getleadHS.lastResult.leadsxml.leads}" >
    < mx:columns >
    < mx:DataGridColumn headerText = "Company" dataField = "leadCompany" / >
    < mx:DataGridColumn headerText = "First name" dataField = "leadFirstName" / >
    < mx:DataGridColumn headerText = "Last Name" dataField = "leadLastName" / >
    < / mx:columns >
    < / mx:DataGrid >

    < / mx:HBox >

    pls someone help me...

    have you ever actually send the HTTPService?

    and the flex part


    http://www.Adobe.com/2006/mxml">


           
           
        creationComplete = "getleadHS.send ()"> ""
           
               
               
               
           

       
       

  • Parsing XML Array problem

    my previous issue became somewhat a different problem;
    basically now when I trace the variables I'm getting undefined. Any help is very appreciated. Thank you!


    > = award.secondChild.nodeValue description

    There is no such thing as secondChild.

    > image = new Array (images.length);

    Where image is defined at the outset? You can't just use an index like this if
    image is not already an array.

    I suggest you change the design a bit. An array of objects of price
    could work well.

    var allAwards = new Array();

    var price = new Object();
    Award.Caption = "my caption";
    Award.images = new Array();

    allAwards.push (award);

    Then you can do like:

    trace(allAwards[0].) Caption);

    --
    Dave-
    www.offroadfire.com
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • parse xml timestamp labview in javascript

    Hi, im reading XML files created from labview7.1 with javascript and it works fine, the only problem is that I don't know how to parse the timestamp. For DS

    ...


    Date of Eximination


    4


    0



    0



    -916291696



    0


    ...

    should be the date of 2011-01-24 and

    ...


    Date of Eximination


    4


    0



    0



    -916205296



    0


    ...

    2011-01-25 indices?

    It seems to work

    
    
    
    

Maybe you are looking for

  • Duplicating music for Windows Media Player files

    original title: duplicates keep duplicate frustrating player / / / med.I REMOVE THEM AND THEY COME BACK WINDOWS MEDIA PLAYER.

  • laptop not having not the portable printer after that computer settings has been turned off

    I have a problem with my laptop and my printer after I connect to the WIFI printer. It will work if it was attached to the printer, but as soon as I turn it off the setting have disappeared. My laptop works on WP7 and canon mg5200 printer. can someon

  • Strange UCSM GUI Java again?

    Hello Since a few days, I've had UCSM Gui appears in this way: as you can see, no image of the chassi ucs do appear. I used to see from time to time buy now its seem permanent. (usually reload to get rid of this problem) I tried to reinstall Java ver

  • ICP - issue CA

    Hi, I read on PKI... What prevents him asking a valid CA certificate - how the CA verifies that the applicant is valid when it decides to issue a certificate to a device of false devices x.509? Thank you, Lisa G

  • 6 of Lightroom, 64 bit, win 7; Catalogs are lost, library is empty

    I use Lightroom 6 for a long time, PC win 7 64-bit. I have lightroom opend 6 today, the cataloags are lost and the bibliothek ist empty. That's happened? What can I do?