]> Git trees. - libqmvoc.git/commitdiff
Pinotree, please look at the patch to isotopes.xml. That is really a good one!
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 19 Feb 2006 17:05:38 +0000 (17:05 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 19 Feb 2006 17:05:38 +0000 (17:05 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=511365

libscience/data/isotopes.xml
libscience/isotopeparser.cpp

index e8f6b27cec69fae1d296c7d7c17fd932aaf8c0d2..90955f3f8050b99e8bace5b2d290033be8026f85 100644 (file)
@@ -1,3 +1,4 @@
+<foo>
 <isotopeList id="H">
        <isotope id="H1" number="1" elementType="H">
                <scalar dictRef="bo:exactMass" errorValue="0.0001E-6">1.007825032</scalar>
                <scalar dictRef="bo:atomicNumber">115</scalar>
        </isotope>
 </isotopeList>
+</foo>
index 286a3d13376c956f8c990c5ff8b81c501b467bf7..e0c043f760b940a0c15d0e6b0a68a9c82466048c 100644 (file)
@@ -83,10 +83,10 @@ IsotopeParser::~IsotopeParser()
 
 bool IsotopeParser::startElement(const QString&, const QString &localName, const QString&, const QXmlAttributes &attrs)
 {
-       kDebug() << "IsotopeParser::startElement(), localName " << localName << endl;
+//X    kDebug() << "IsotopeParser::startElement(), localName " << localName << endl;
        if (localName == "isotopeList") 
        {
-               kDebug() << "setting inElement true! ========================== NEW ELEMENT ========= " << endl;
+//X            kDebug() << "setting inElement true! ========================== NEW ELEMENT ========= " << endl;
                d->inElement = true;
                
                //now save the symbol of the current element
@@ -95,11 +95,11 @@ bool IsotopeParser::startElement(const QString&, const QString &localName, const
                        if ( attrs.localName( i ) == "id" )
                                d->currentElementSymbol = attrs.value( i );
 
-                       kDebug() << "Symbol of the current Element: " << attrs.value( i ) << endl;
+//X                    kDebug() << "Symbol of the current Element: " << attrs.value( i ) << endl;
                }
        } else if ( d->inElement && localName == "isotope") 
        {
-               kDebug() << "setting inIsotope true!" << endl;
+//X            kDebug() << "setting inIsotope true!" << endl;
                d->currentIsotope = new Isotope();
                d->inIsotope = true;
        } else if (d->inIsotope && localName == "bo:spin") {
@@ -168,7 +168,7 @@ bool IsotopeParser::endElement( const QString&, const QString& localName, const
        }
        else if ( localName == "isotopeList" )
        {//a new list of isotopes start...
-               kDebug() << "setting d->inElement FALSE" << endl;
+//X            kDebug() << "setting d->inElement FALSE" << endl;
                d->inElement = false;
        }