Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

building produces an XML error but cant find it in code

$
0
0

I have gone over so many post trying to get more info about the error to fix it.

>[ERROR] Error parsing XML file.

>[ERROR] : Alloy compiler failed

I have tried to up the logging level but that's not in Run Configurations any more. I have gone over all of my XML multiple times but found nothing.

I finally ran the build from the command line to see if it would output any more and it did

>[INFO] [index.xml] view processing... [ >INFO] style: "index.tss"

>[INFO] view: "index.xml"

>[ERROR] Error parsing XML file.

>[ERROR] Unclosed XML tag or attribute

>[ERROR] @#[line:1,col:1]

So this actually tells me what file and line number but when I go to the index.xml I see nothing wrong?

(FYI my project is basically a copy of the TODO sample)

<Alloy>
  <!-- Main Window -->
  <Window id="todoWin" title="Todo" platform="android,ios">
 
    <!-- header -->
    <View id="header">
      <Label id="title">Alloy Todo</Label>
      <View class="divider"/>
      <View id="addView" onClick="addToDoItem">
        <ImageView id="addImage"/>
      </View>
    </View>
 
    <!-- Main table for tasks
      Use model-view binding to render the rows fo this table
      based on the models in the given collection. "dataCollection"
      represents the collection used to populate this table.
      "dataWhere" is a function used to filter the list of
      models processed within the collection. "dataTransform"
      is a function that will be executed on each model as it
      is rendered as a row. It gives the opportunity to modify
      the model's values before they are applied to each row.
    -->
    <TableView id="todoTable" dataCollection="todo" dataFilter="whereFunction" dataTransform="transformFunction">
      <Require src="row"/>
    </TableView>
 
    <!-- iOS: footer with buttons -->
    <View platform="ios" id="footer">
      <TabbedBar onClick="showTasks" id="tabbedbar">
        <Labels>
          <Label>All</Label>
          <Label>Active</Label>
          <Label>Done</Label>
        </Labels>
      </TabbedBar>
    </View>
 
    <!-- Android: menu -->
    <Menu platform="android">
      <MenuItem title="All" onClick="showTasks"/>
      <MenuItem title="Active" onClick="showTasks"/>
      <MenuItem title="Done" onClick="showTasks"/>
    </Menu>
  </Window>
 
  <!-- Main Window for unsupported platforms -->
  <Window id="todoWin" platform="blackberry,mobileweb">
    <Label>todo app is only supported on Android and iOS</Label>
  </Window>
</Alloy>

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>