</isotopeList>
<isotopeList id="H">
<isotope id="H1" number="1" elementType="H">
- <abundance dictRef="bo:relativeAbundance">99.9885</abundance>
+ <scalar dictRef="bo:relativeAbundance">99.9885</scalar>
<scalar dictRef="bo:exactMass" errorValue="0.0001E-6">1.007825032</scalar>
<scalar dictRef="bo:spin">1/2+</scalar>
<scalar dictRef="bo:magneticMoment">+2.792846</scalar>
} else if (d->inIsotope && localName == "magmoment") {
//X kDebug() << "bo:magneticMoment" << endl;
d->inMagMoment = true;
- } else if (d->inIsotope && localName == "halflife") {
+// }else if (d->inIsotope && localName == "halflife") {
//X kDebug() << "bo:halfLife" << endl;
- for (int i = 0; i < attrs.length(); ++i)
- {
- if ( attrs.localName( i ) == "unit" )
- {
- d->currentDataObject->setUnit( d->currentUnit );
- }
- else
- {
- d->currentUnit = ChemicalDataObject::noUnit;
- }
- }
- d->inHalfLife = true;
+// for (int i = 0; i < attrs.length(); ++i)
+// {
+// if ( attrs.localName( i ) == "unit" )
+// {
+// d->currentDataObject->setUnit( d->currentUnit );
+// }
+// else
+// {
+// d->currentUnit = ChemicalDataObject::noUnit;
+// }
+// }
+// d->inHalfLife = true;
//X if ( d->currentUnit != ChemicalDataObject::noUnit )
//X d->currentDataObject->setUnit( d->currentUnit );
d->inAtomicNumber = true;
else if (attrs.value(i) == "bo:exactMass")
d->inExactMass = true;
+ else if (attrs.value(i) == "bo:halfLife"){
+ for (int i = 0; i < attrs.length(); ++i)
+ {
+ if ( attrs.localName( i ) == "unit" )
+ {
+ d->currentDataObject->setUnit( d->currentUnit );
+ }
+ else
+ {
+ d->currentUnit = ChemicalDataObject::noUnit;
+ }
+ }
+ d->inHalfLife = true;
+ }
}
- } else if (d->inIsotope && localName == "bo:relativeAbundance") {
+ }
+ else if (d->inIsotope && localName == "bo:relativeAbundance") {
//X kDebug() << "bo:relativeAbundance" << endl;
d->inAbundance = true;
}