title: Opening an FXML file
body: <p>Im trying to open our project's fxml files with JavaFX Scene Builder but getting error.</p>
  
  <p>Here is one example file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?import javafx.collections.FXCollections ?&gt;
  &lt;?import javafx.constants.*?&gt;
  &lt;?import javafx.scene.control.*?&gt;
  &lt;?import javafx.scene.layout.*?&gt;
  &lt;?import java.net.URL?&gt;
  &lt;ScrollPane xmlns:fx="http://javafx.com/fxml"
              fx:controller="javafx.controller.main.kerNMainController"
              fitToWidth="true"
              fitToHeight="true"&gt;
  
      &lt;GridPane styleClass="root"
                alignment="CENTER_LEFT"
                hgap="10"
                vgap="20"&gt;
          &lt;VBox alignment="CENTER"&gt;
              &lt;Label text="%kerN.main.welcome.label.text"
                     GridPane.columnIndex="0"
                     GridPane.rowIndex="1"
                     GridPane.halignment="CENTER"
                     fx:id="welcomeLabel"/&gt;
  
              &lt;Label fx:id="versionLabel" text="%kerN.main.version.label.text" styleClass="outerLabel"/&gt;
          &lt;/VBox&gt;
  
          &lt;VBox alignment="BASELINE_CENTER"
                spacing="40"
                GridPane.columnIndex="0"
                GridPane.rowIndex="2"
                minHeight="550"
                minWidth="550"&gt;
              &lt;Button fx:id="assignedTestsAvailableButton"
                      text="%kerN.main.assigned.tests.available.btn.text"
                      onAction="#handleAssignedTestsAvailable"
                      styleClass="assignedTestsButton"&gt;
                  &lt;minWidth&gt;
                      &lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;
                  &lt;/minWidth&gt;
                  &lt;minHeight&gt;
                      &lt;Constants fx:constant="DOUBLE_BUTTON_HEIGHT"/&gt;
                  &lt;/minHeight&gt;
              &lt;/Button&gt;
              &lt;Button fx:id="configurationButton"
                      text="%kerN.main.configuration.btn.text"
                      styleClass="configurationButton"
                      onAction="#handleConfiguration"&gt;
                  &lt;minWidth&gt;
                      &lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;
                  &lt;/minWidth&gt;
                  &lt;minHeight&gt;
                      &lt;Constants fx:constant="DOUBLE_BUTTON_HEIGHT"/&gt;
                  &lt;/minHeight&gt;
              &lt;/Button&gt;
              &lt;Button fx:id="maintenanceButton"
                      text="%kerN.main.maintenance.btn.text"
                      styleClass="maintenanceButton"
                      onAction="#handleMaintenance"&gt;
                  &lt;minWidth&gt;
                      &lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;
                  &lt;/minWidth&gt;
                  &lt;minHeight&gt;
                      &lt;Constants fx:constant="DOUBLE_BUTTON_HEIGHT"/&gt;
                  &lt;/minHeight&gt;
              &lt;/Button&gt;
              &lt;Button fx:id="editTestDataButton"
                      text="%kerN.main.edit.test.data.button.text"
                      onAction="#handleEditTestData"
                      styleClass="editTestDataButton"&gt;
                  &lt;minWidth&gt;
                      &lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;
                  &lt;/minWidth&gt;
                  &lt;minHeight&gt;
                      &lt;Constants fx:constant="DOUBLE_BUTTON_HEIGHT"/&gt;
                  &lt;/minHeight&gt;
              &lt;/Button&gt;
              &lt;Button fx:id="testProcessButton"
                      text="%test.process.button.text"
                      onAction="#handleTestProcess"
                      styleClass="testProcessButton"&gt;
                  &lt;minWidth&gt;
                      &lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;
                  &lt;/minWidth&gt;
                  &lt;minHeight&gt;
                      &lt;Constants fx:constant="DOUBLE_BUTTON_HEIGHT"/&gt;
                  &lt;/minHeight&gt;
              &lt;/Button&gt;
          &lt;/VBox&gt;
      &lt;/GridPane&gt;
  
      &lt;stylesheets&gt;
          &lt;URL value="@../../style/general/Buttons.css"/&gt;
          &lt;URL value="@../../style/main/kerNMain.css"/&gt;
      &lt;/stylesheets&gt;
  &lt;/ScrollPane&gt;
  </code></pre>
  
  <p>The error Im getting for this from Scene Builder is </p>
  
  <pre><code>java.io.IOException: javafx.fxml.LoadException: Invalid attribute.
  /C:/Users/User/workspace/kerN/src/javafx/frame/main/kerNMain.fxml:37
  
      at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:92)
      at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.&lt;init&gt;(FXOMDocument.java:80)
      at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.&lt;init&gt;(FXOMDocument.java:95)
      at com.oracle.javafx.scenebuilder.kit.editor.EditorController.updateFxomDocument(EditorController.java:2370)
      at com.oracle.javafx.scenebuilder.kit.editor.EditorController.setFxmlTextAndLocation(EditorController.java:655)
      at com.oracle.javafx.scenebuilder.app.DocumentWindowController.loadFromFile(DocumentWindowController.java:386)
      at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.performOpenFiles(SceneBuilderApp.java:579)
      at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleOpenFilesAction(SceneBuilderApp.java:447)
      at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleLaunch(SceneBuilderApp.java:427)
      at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStartGeneric(AppPlatform.java:139)
      at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStart(AppPlatform.java:106)
      at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.start(SceneBuilderApp.java:371)
      at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
      at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      at java.lang.Thread.run(Thread.java:744)
  Caused by: javafx.fxml.LoadException: Invalid attribute.
  /C:/Users/User/workspace/kerN/src/javafx/frame/main/kerNMain.fxml:37
  
      at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2613)
      at javafx.fxml.FXMLLoader.access$100(FXMLLoader.java:104)
      at javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:943)
      at javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:216)
      at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:738)
      at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2723)
      at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
      at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2425)
      at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:89)
      ... 22 more
  </code></pre>
  
  <p>The fxml files are created manually and theywork in the application but cant be opened in Scene Builder, none of them... Is there a solution for this or alternative fxml builders?</p>
  
  <p>Line :37 <code>&lt;Constants fx:constant="LARGE_BUTTON_WIDTH"/&gt;</code></p>