I need a way to know what are the children of an XmlNode allowed by the XML Schemas associated to the XML file. Is there a simple way in C#?
I need it to implement a sort of contextual editor that suggests to the user the children allowed of the current edited XML Node.
thanks
You may try using the XmlSchemaValidator Class –
It validates XML data against XML schemas in a
push-based mannerSee the “GetExpectedParticles” function where for the sample it says –
You may also try running the sample provided.