title: XQuery [nodes()]: Syntax error near '<eof>', expected a step expression
body: <p>Running the below SQL/XPath query returns the following error:</p>
  
  <p>Query:</p>
  
  <pre><code>;WITH XMLNAMESPACES (
    'http://schemas.microsoft.com/win/2004/08/events/event' as ns
  , default 'http://schemas.microsoft.com/win/2004/08/events/event'
  )
  
  select [Events].[Event].value('(./System/TimeCreated/@SystemTime)[1]','nvarchar(100)') EventTime
  from @xml.nodes('/*/Event/') [Events]([Event])
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>XQuery [nodes()]: Syntax error near '&lt;eof&gt;', expected a step expression.
  </code></pre>