Hi folks,

I have a simple XQuery
Qt Code:
  1. declare variable $InputDocument external; doc($InputDocument)/root/string(EnvelopeIcon)
To copy to clipboard, switch view to plain text mode 
and an XML document which is just as complex
Qt Code:
  1. <?xml version="1.0"?><root><EnvelopeIcon>C:\ABC\ggg.jpg</EnvelopeIcon><RecordIcon>C:\ABC\SSS\111.jpg</RecordIcon></root>
To copy to clipboard, switch view to plain text mode 
Then I evaluate it to an QXmlResultItems instance and use its result via next() member-function. That's it. But when I call next() function one more time I have non-null element! And if I take its value it would empty string. I don't understand why I have two elements in QXmlResultItems instead of one.
P.S If i use
Qt Code:
  1. declare variable $InputDocument external; doc($InputDocument)/root/EnvelopeIcon
To copy to clipboard, switch view to plain text mode 
I have right behavior with QXmlResultItems containing one element.
Is it bug? or I don't know something?