trouble with pipe advertisement

Java <[email protected]> Sun, 21 May 2006 17:08:39 +0200
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
hi,

in the tutorial, for sending/receiving messages the two peers load the 
pipe advertisement from a xml file.

I don't understand how to create that file? I would like to generate it 
dinamically while running the peers, but it seems it's write by hand.

So, if it can be generate at run time, how can I be sure to have the 
same pipeId in every advertisement for every  peer? (so, becouse id is 
generated ramdomly,  I think every peer will create a different if from 
each other).

If I have to write it by myself, where I can find guidelines for use the 
correct syntax? and for the id? If I just cut and paste the example of 
tutorial I think my pipe id is the same of every other user doing the same!

thanx
Segolas