A general comment...

Dale wrote:

> anything that 
> > parses an XML file should ignore elements and attributes that 
> > it does not understand.  (And presumably it would be quick 
> > enough to examine the relevant code to verify that.)

This is a common misconception - it is not a rule, it is a choice one
_could_ make.

Our policy in the project has been to specify a schema for any xml file
that we use, so that we have a formal validation mechanism (very useful
in unit tests and run time configtests).  It is possible for a schema to
specify that any element may appear in a given context, but it is _not_
the default.  Few of our schemas do so.

Whether or not our actual xml file parsers tolerate unknown elements
varies - some do and some do not.  Personally, I think that ignoring
unknown elements is usually a bad idea - it means that the file appears
to say one thing but is actually interpreted in some other way.



_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to