I apologize for my previous response as it likely left you with a question that you might have trouble answering. JavaScript does not have classes like C++ or Java. So, let's start over.
1) What is the final result that you want to achieve? When somebody provides you a schema what should the JavaScript application actually output? Please be specific. 2) I have written an advanced beautifier for XML/HTML, which achieves half the objectives of an XML parser. Depending upon your answers to my prior point I can likely instruct you on how to extend my code to meet your objectives. Here is the code if you wish to read it: http://prettydiff.com/markup_beauty.js I am considering extending the current reporting to create a tree diagram that maps inheritance. Here is a prior existing example of such: http://ar.no.de/schema.org/ If I can extend the current code to recognize attributes and also extend it to support such a tree diagram that maps to namespace definitions that should get you to most of what you need, correct? If I am in error please let me know. These tasks may sound simple, but would actually require a decent amount of effort. If you need such a solution in a hurry you may be better off extending my code on your own. Austin Cheney, CISSP http://prettydiff.com/ -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
