Re: Function of XAM

Samaresh <[email protected]> Mon, 01 Oct 2007 16:13:11 -0500
Newsgroups gmane.comp.java.netbeans.modules.xml.devel
Message-ID <[email protected]>
Amit Kumar Saha wrote:
> Hello all,
>
> I am trying to get an idea of how the XML support in NetBeans works.
> It would be nice if some one here could explain to me in simple terms,
> what exactly is the purpose 'XAM' is serving, possibly with a simple
> example. May be after this, i can better understand the page at
> http://xml.netbeans.org/xam-usage.html
>   
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.

HTH
Samaresh