Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

listCPPFiles.xq Example File

filetree/queries/listCPPFiles.xq
declare variable $where as xs:string := string($fileTree/@filePath);
<html>
  <head>
    <title>All cpp files in: {$where}</title>
  </head>
  <body>
    <p>
      cpp-files found in {$where} sorted by size:
    </p>
    <ul> {
      for $file in $fileTree//file[@suffix = "cpp"]
      order by xs:integer($file/@size)
      return
        <li>
          {string($file/@fileName)}, size: {string($file/@size)}
        </li>
    } </ul>
  </body>
</html>
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded