This line:
//div[@id="transactions"]/p
gives this output (from html content I’m trying to get):

How can i make this query return a string like this (the content if each <p> in it’s own line):
contentOfP1
contentOfP2
contentOfP3
...
Notice that each p have child nodes (<strong> and <a>) and text with no tags. when trying to retrieve all text from a specific <p>, it gives this:

Use:
Or, if the space-normalized “content of each paragraph” is wanted — as indicated in a comment, use: