ecDecay/**< The decayenergy of ecminusdecay in MeV */,
dangerSymbol/**< the danger symbols are the dangers associated with an element, for example Xn,T+ */,
RPhrase/**< */,
- SPhrase/**< */
+ SPhrase/**< */,
+ discoveryCountry
};
/**
inDensity( false ),
inDangerSymbol( false ),
inRPhrase( false ),
- inSPhrase( false )
+ inSPhrase( false ),
+ inCountry( false )
{
}
bool inDangerSymbol;
bool inRPhrase;
bool inSPhrase;
+ bool inCountry;
};
ElementSaxParser::ElementSaxParser()
{
d->currentElement = new Element();
d->inElement = true;
- } else if (d->inElement && localName == "scalar")
+ } else if (d->inElement && localName == "scalar" || localName == "array" )
{
for (int i = 0; i < attrs.length(); ++i)
{
d->inDiscoveryDate = true;
else if (attrs.value(i) == "bo:discoverers")
d->inDiscoverers = true;
+ else if (attrs.value(i) == "bo:discoveryCountry")
+ d->inCountry = true;
else if (attrs.value(i) == "bo:period")
d->inPeriod = true;
else if (attrs.value(i) == "bo:crystalstructure")
type = ChemicalDataObject::SPhrase;
d->inSPhrase = false;
}
+ else if (d->inCountry){
+ value = ch;
+ type = ChemicalDataObject::discoveryCountry;
+ d->inCountry = false;
+ }
else//it is a non known value. Do not create a wrong object but return
return true;