//_______________________________________________________________________________ void xmlreader::newProcessingInstruction (const char* pi) { Sxmlelement elt = factory::instance().create("pi"); elt->setValue(pi); fStack.top()->push(elt); }
//_______________________________________________________________________________ void xmlreader::newComment (const char* comment) { Sxmlelement elt = factory::instance().create("comment"); elt->setValue(comment); fStack.top()->push(elt); }
Sxmlelement musicxmlfactory::element(int type, float value) const { Sxmlelement elt = factory::instance().create(type); if (value) elt->setValue (value); return elt; }
//------------------------------------------------------------------------ static Sxmlelement newElementI(int type, int value) { Sxmlelement elt = factory::instance().create(type); elt->setValue (value); return elt; }
//------------------------------------------------------------------------ Sxmlelement newElement(int type, const string& value) { Sxmlelement elt = factory::instance().create(type); elt->setValue (value); return elt; }