Auto import after editing .aup project file

I’m wondering whether my idea could work or not.

I’m experimenting with the idea of editing .aup directly to write the entire wavetrack XML node, so that:

  • when opening the project, the wave file will be automatically imported
  • by leaving attributes such as numsamples empty, all the metadata will be filled in when opening the project without XML dtd complaints.

So far I have no luck by adding a block

This unfortunately gives me an empty mono audio track.
Will my idea work?