eg2000
April 25th, 2008, 01:46 PM
I am looking for a capability similar to the one used in the Eclipse (or whatever IDE) plugin where when you are editing and XML, it knows to autocomplete the necessary attributes for a new element, or give a drop down list of valid values for a new attribute, based on the XSD definition.
To be clear, I am NOT looking for the plugin (just mentioned it to clarify what I need), but rather for some existing library methods (or code) that, given an XMLNode/XMLAttribute object, can return me the valid values based on the XML file's XSD definition.
e.g. something like:
List<string> GetNecessaryAtributes(XMLNode mynode, string xsd_file)
List<string> GetValidValues(XMLAttribute myatt, string xsd_file)
thanks.
To be clear, I am NOT looking for the plugin (just mentioned it to clarify what I need), but rather for some existing library methods (or code) that, given an XMLNode/XMLAttribute object, can return me the valid values based on the XML file's XSD definition.
e.g. something like:
List<string> GetNecessaryAtributes(XMLNode mynode, string xsd_file)
List<string> GetValidValues(XMLAttribute myatt, string xsd_file)
thanks.