Tuesday, May 08, 2007

Valid, Valid, Valid

As I wrote in my last post about my lil xml-project at university and that I've learned something new about namespaces and xsd-files: you can change the prefix in an xml-instance of a xsd-file and the xml-instance still stays valid. Check the following code-snippets:

First the XSD:

From Misc

And here is the XML-Instance with the same prefix as in the XSD ...

From Misc

... and here after I've changed the prefix:

From Misc

So the 'tutor' at university was right and I really have learned something new... yeah!

Keep coding ... Cheers

No comments: