Question about xml

Posted on 2011-05-12
Last Modified: 2013-12-16

I am using a treeview and the treeview-nodes will be loaded from a xml-file.
It uses a DataSet to do this.

1. Is there a tool where i can check the syntax of my xmlfile?
2. I have an error message:

"Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."

And I don't know what it means and what to do about it?

Who knows the answer and is willing to help me?

Question by:peterkiers
    LVL 22

    Accepted Solution

    > 1. Is there a tool where i can check the syntax of my xmlfile?
    Load xml into a browser and will see whether and where there are errors.

    about 2nd question read here


    Ivo Stoykov
    LVL 1

    Author Comment

    To be honest i am not formiliar with the Watch-screen
    I have typed: dsStore.HasError. But the only thing that happens
    is that my app executes. But I see no error.
    LVL 1

    Author Comment

    When I put:    dsStore.EnforceConstraints=true
    my app execute but i get the data loaded in the treeview TWICE

    LVL 1

    Author Comment

    Found it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now