move nodeid and qname  parsing to their respective classes