none
WPF XmalParseException 如何解决,请看code RRS feed

  • 问题

  • exception位置:

     

    <ListBoxName="peopleListBox"Grid.Column="1"Grid.Row="2"

           

    ItemsSource="{BindingSource={StaticResourceExpenseDataSource},XPath=Expenses}"


           

    ItemTemplate="{StaticResourcenameItemTemplate1}">


           

    </ListBox>

    数据

    <

    Grid.Resources>


               

    <!-- Expense Report Data -->


               

    <XmlDataProviderx:Key="ExpenseDataSource"XPath="Expenses">


                   

    <x:XData>


                       

    <Expensesxmlns="">


                           

    <PersonName="Mike"Department="Legal">


                               

    <ExpenseExpenseType="Lunch"ExpenseAmount="50" />


                               

    <ExpenseExpenseType="Transportation"ExpenseAmount="50" />


                           

    </Person>


                           

    <PersonName="Lisa"Department="Marketing">


                               

    <ExpenseExpenseType="Document printing"


        

    ExpenseAmount="50"/>


                               

    <ExpenseExpenseType="Gift"ExpenseAmount="125" />


                           

    </Person>


                           

    <PersonName="John"Department="Engineering">


                               

    <ExpenseExpenseType="Magazine subscription"

       

    ExpenseAmount="50"/>


                               

    <ExpenseExpenseType="New machine"ExpenseAmount="600" />


                               

    <ExpenseExpenseType="Software"ExpenseAmount="500" />


                           

    </Person>


                           

    <PersonName="Mary"Department="Finance">


                               

    <ExpenseExpenseType="Dinner"ExpenseAmount="100" />


                           

    </Person>


                       

    </Expenses>


                   

    </x:XData>


               

    </XmlDataProvider>


               

    <!-- Name item template -->


               

    <DataTemplatex:Key="nameItemTemplate1">


                   

    <LabelContent="{BindingXPath=@Name}"/>


               

    </DataTemplate>


           

    </Grid.Resources>

    请熟悉wpf的帮忙看看

    2014年11月4日 2:30