Treat elements with different attributes differently in XML Schema

GermsPexars

New Member
I am writing a specialization for a pre-defined XML format. I would like to allow this:\[code\]<InterfaceClass Name="Program"> <InterfaceClass Name="ProgramPart" /></InterfaceClass>\[/code\]while not allowing that:\[code\]<InterfaceClass Name="ProgramPart" />\[/code\]meaning ProgramParts may only occur under Program elements.I would like also to ignore everything else in the XML file, since I have a schema for the general format.Is it possible? Or is there any other formalism suitable for that.
 
Back
Top