• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Question about xml


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?

  • 3
1 Solution
Ivo StoykovCommented:
> 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
peterkiersAuthor Commented:
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.
peterkiersAuthor Commented:
When I put:    dsStore.EnforceConstraints=true
my app execute but i get the data loaded in the treeview TWICE

peterkiersAuthor Commented:
Found it.

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now