Aleksander Slominski wrote:

> Libor Kramolis wrote:
> 
> 
>>Yes. There is a lot of tree APIs around XML and it is hard to choose one of
>>them. W3C DOM is the most used because it is standard API but it is not so
>>much comfortable for java developers and this is reason, why there are JDOM,
>>dom4j, etc. Those APIs are still *data* oriented only and this is reason,
>>why we are developing *TAX*.
>>
> 
>>TAX provides *structural* oriented API, because NetBeans XML module provides
>>tree editing support and it needs more info about parsed XML and DTD
>>documents. And this is reason why we use XNI instead of SAX for build TAX tree.
>>
> 
> hi,
> 
> could you exlain what do you mean by sata and structural oriented (and maybe give
> an example)?


XML document has some *structure*, which is described by w3c recomendation 
(tags, attributes, references, etc.). This structure describes some *data*. 
And this is that difference between those views at XML documents.

Applications which use XML as *data* storage, they do not need (and 
sometimes do not want) to know, what was structure of data source. They only 
want to get tree structure of elements, which can have attributes and some 
content. Attribute is pair of name and value; content is list of another 
elements or/and literal data. That's it. No DTD, no schema, no references, 
no comments are important for manipulation with data.

While tool, which supports tree editing of XML and DTD documents, needs 
*structure* of ALL nodes, which could be in XML and DTD files used. 
Including header, DTD declarations, used entity and character references, 
comments, etc. Important is also order of element's attributes and 
information about attributes specified in DTD.

So when you want create tree structure for *data* oriented applications, you 
can have just three nodes - element, attribute, text. Nothing more. While 
*structure* oriented application need tree structure about eighteen kinds of 
  nodes. And *TAX* is structure oriented model of XML and DTD documents, 
which we use in NetBeans XML module for two way editing.

I hope, it is comprehensible. I am looking forward to any questions, 
suggestions, comments. Thanks.


> 
> http://xml.netbeans.org/tax/ does not exaplain anything...



You are right. We plan to improve its pages especially with UML diagrams. I 
will announce about it.


> 
> thanks,
> 
> alek
> 
> 


Thanks for your question.

Regards,
Libor
-- 
Libor Kramolis, Software Engineer     | [EMAIL PROTECTED]
NetBeans/Sun Microsystems, XML module | http://xml.netbeans.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to