Corectly set properties in parse and getDomElement methods

Signed-off-by: aurel <aurel.savoiu@cti.pub.ro>