Re: Function of XAM
Samaresh <[email protected]> Tue, 02 Oct 2007 13:04:53 -0500
| Newsgroups | gmane.comp.java.netbeans.modules.xml.devel |
|---|---|
| Message-ID | <[email protected]> |
Amit Kumar Saha wrote: > Hello Samaresh, > > On 10/2/07, Samaresh <[email protected]> wrote: > >> In XML world, there are a lot of document types. XML Schema, WSDL, XSL >> etc. etc. They are all plain XML. >> >> Now when it comes to using these documents in editor, user sees and uses >> them differently. There are various domain models that come into play, >> e.g. for WSDL document, there is a WSDL model behind the scene. >> >> XAM is an abstraction which encapsulates all common behavior for these >> models. As an example, lets say, if you want to write your own XSL >> model, you may want to extend from XAM and get a lot for free. Schema >> model, WSDL model, AXIOM etc are all an extension to XAM. >> > > Things have become a lot clearer now. Thanks! > > Consider a situation in which I am editing a simple XML file with a > DTD, XML namespace. How is the model for this generated? I would like > to know how does XAM handle any generic XML document loaded into the > editor. > Let me re-iterate, there is no XAM just for any XML document. XAM is an abstraction and domain models (like Schema, WSDL etc) bring in XAM by virtue of extending/implementing XAM. You may want to create your own XAM based model for some XML. How you want to create it is up to you. AXIOM (xml/axi) is an good example if you want to know the technical details of using XAM.