Never commit without running "make tests" :-( fix a couple of stupidities

* valid.c SAX.c: Never commit without running "make tests" :-(
  fix a couple of stupidities in the previous commit
* result/*: a few changes in some attribute order result of previous
  commit.
Daniel
diff --git a/result/ns4 b/result/ns4
index fb7bc3e..136bf92 100644
--- a/result/ns4
+++ b/result/ns4
@@ -1,2 +1,2 @@
 <?xml version="1.0"?>
-<diagram xml:lang="en" xml:link="simple" xml:space="preserve" testattr="test"/>
+<diagram testattr="test" xml:lang="en" xml:link="simple" xml:space="preserve"/>