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

Question about xml

Hi,

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?

Peter
0
peterkiers
Asked:
peterkiers
  • 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

HTH

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

P.
0
 
peterkiersAuthor Commented:
Found it.
0

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