different Java/XML technologies

User avatar
Sabina
Уже с Приветом
Posts: 5669
Joined: 13 Oct 2000 09:01
Location: East Bay, CA

different Java/XML technologies

Post by Sabina »

What one is trying to say by the following?
I just do not understand what this mix of technologies has in common (because I am not familiar with ones that underlined)? Or is it just blabbering about everything....

SAX is no longer very useful. DOM is OK, but the tree traversal is difficult. XPath is the way to go, I think. Declarative node retrievals rather than iterative logic. XQuery is also very interesting. XQuery APIs and products are relatively immature. XSLT is complex, but much more mature.


Sabina
leprechaun
Удален за рекламу собственного бизнеса
Posts: 178
Joined: 24 Jul 2002 08:02
Location: Baile Atha Cliath

Re: different Java/XML technologies

Post by leprechaun »

Sabina wrote:What one is trying to say by the following?
I just do not understand what this mix of technologies has in common (because I am not familiar with ones that underlined)? Or is it just blabbering about everything....

SAX is no longer very useful. DOM is OK, but the tree traversal is difficult. XPath is the way to go, I think. Declarative node retrievals rather than iterative logic. XQuery is also very interesting. XQuery APIs and products are relatively immature. XSLT is complex, but much more mature.


Sabina


He probably wanted to emphasize that the direct access to the information you need is preferred over the iterative approach. Instead of going thru the whole lot of data until you find what you need, you just go straight there following the correct reference/path.
User avatar
Sabina
Уже с Приветом
Posts: 5669
Joined: 13 Oct 2000 09:01
Location: East Bay, CA

Re: different Java/XML technologies

Post by Sabina »

leprechaun wrote:He probably wanted to emphasize that the direct access to the information you need is preferred over the iterative approach. Instead of going thru the whole lot of data until you find what you need, you just go straight there following the correct reference/path.


OK, I see thanks.
May be I am incorrect but I thought XSLT doesn't quite fit in there...

Sabina
User avatar
Strannik223
Уже с Приветом
Posts: 569
Joined: 14 Dec 2003 04:06
Location: Львов->Киев->Торонто

Post by Strannik223 »

По моему билеберда полная.
SAX vs DOM: первое - скорость и почти не ест память. Но не очень удобно вытягивать данные. Второе - тормознутость на больших документах (создайте документ с миллионом нод и посмотрите сколько памяти и CPU это съест). Зато очень удобные XPath можно писать.Остальные технологии то же пересекаются но дополняют друг друга а не заменяют.
Никакой разрухи нет. (с) Проф. Преображенский.
User avatar
geek7
Уже с Приветом
Posts: 20297
Joined: 01 Dec 2003 23:16
Location: Russia->USA

Re: different Java/XML technologies

Post by geek7 »

Sabina wrote:What one is trying to say by the following?
SAX is no longer very useful. DOM is OK, but the tree traversal is difficult. XPath is the way to go, I think. Declarative node retrievals rather than iterative logic. XQuery is also very interesting. XQuery APIs and products are relatively immature. XSLT is complex, but much more mature.

%90 "Я знаю карате, дзюдо, айкидо и еще ДО.. в общем много страшных слов"
Парсер использует .SAX чтобы построить DOM ..
если DOM is OK,.. "SAX is no longer very useful." :pain1:
XQuery и XSLT используют XPath

http://www.w3.org/TR/xpath
XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer.


http://www.w3.org/TR/xquery/#id-introduction

Definition: XQuery operates on the abstract, logical structure of an XML document, rather than its surface syntax. This logical structure is known as the data model, which is defined in the [XQuery 1.0 and XPath 2.0 Data Model] document.]

XQuery Version 1.0 is an extension of XPath Version 2.0.
User avatar
Sabina
Уже с Приветом
Posts: 5669
Joined: 13 Oct 2000 09:01
Location: East Bay, CA

Re: different Java/XML technologies

Post by Sabina »

geek7 wrote:%90 "Я знаю карате, дзюдо, айкидо и еще ДО.. в общем много страшных слов"
Парсер использует .SAX чтобы построить DOM ..
если DOM is OK,.. "SAX is no longer very useful." :pain1:


Image ImageImageImage


Sabina
Palych
Уже с Приветом
Posts: 13684
Joined: 16 Jan 2001 10:01

Post by Palych »

Strannik223 wrote:Второе - тормознутость на больших документах (создайте документ с миллионом нод и посмотрите сколько памяти и ЦПУ это съест). Зато очень удобные ХПатх можно писать.

В общем случае [XPath] можно и в [SAX] использовать...
Про саму фразу уже написали. Странная она мягко говоря....
User avatar
Blake
Уже с Приветом
Posts: 1102
Joined: 16 Sep 2003 04:41
Location: Out Of Blue

Post by Blake »

The latest & greatest JAXB from Sun JWSDP is very nice.

Return to “Вопросы и новости IT”