Link to X3D Scene Access Interface programming using Java:
http://www.xj3d.org/tutorials/general_sai.html