Not enough info to really help but you should look at making a new or use an existing PLMXML closure rule. Then use plmxml_export to do the export.
thanks first! I want to export all data, eg: all MS excel dataset. I thought of using plmxml, I don't have detailed steps.