[xsd-users] mapping between xsd file and xml file

Boris Kolpackov boris at codesynthesis.com
Wed Mar 31 09:46:42 EDT 2010


Hi Erik,

Erik Sjölund <erik.sjolund at gmail.com> writes:

> Could CodeSynthesis XSD or CodeSynthesis XSD/e be used for this:
> 
> A GUI application showing an XML file in one window and showing the
> corresponding W3C XML Schema in another window. The data trees could
> both be represented with something like
> http://qt.nokia.com/doc/4.6/qtreewidget.htm 
> 
> A mouse click in one of the trees would mark the corresponding place in
> the other tree.

Neither XSD nor XSD/e will really be of much help here. What you are
looking for is an XML Schema validator with PSVI (Post-Schema Validation
Infoset) that would allow you to get from an XML construct (e.g., element,
attribute, etc.) to the corresponding XML Schema construct that was used
to validate this XML construct. The closest you can get is probably
Xerces-C++. Though getting from the XML Schema construct to file/line
in the .xsd file might be a challenge. 

If you decide to try Xerces-C++ and have further questions about it,
the better place to direct them would be the project's mailing lists:

http://xerces.apache.org/xerces-c/mailing-lists.html

Boris



More information about the xsd-users mailing list