Saving and loading level XMLs

I’m new to Unity3D. I made a small game for which I intend to make levels for.

I need to only save scene’s game objects to an XML and read it when I load a new scene.

As part of it, I need to save all game objects position, and rotation in the scene.

I save that as XMl and read data from it.

Is there any tutorial that demonstrates how to do it ?

You can write a controller that would find and serialize the objects that you want. You can implement the IXMLSerializable interface to save the information about the objects that you want - so you can write what you need there.

Take a look at IXmlSerializable Interface (System.Xml.Serialization) | Microsoft Learn - the main points being ReadXml and WriteXml (which are called automatically when you serialize to XML) which lets you save only the info you would like.