Proper rsxml for "Perform query"

One Applescript option is “Perform Query”, described as 

perform query v : Run XML formatted EndNote query on all documents or specified document

perform query text : EndNote query formatted as XML

[on specifier] : specifier of document on which the query will be performed

I’ve been unable to figure out how to appropriately format the xml to perform a query.  I would greatly appreciate it if any one knowledgeable could please share what should go where the green is before and confirm that the underlined line is correct.


tell application “EndNote X7”

    set theXML to what the heck goes here!!?? 

    perform query theXML on front window