Streaming API for XML (StAX) is an application programming interface to read and write XML documents, originating from the Java programming language community. Traditionally, XML APIs are either: tree based - the entire document is read into memory as a tree structure for random access by the calling application event based - the application registers to receive events as entities are encountered within the source document.

PropertyValue
dbpprop:abstract
  • Streaming API for XML (StAX) is an application programming interface to read and write XML documents, originating from the Java programming language community. Traditionally, XML APIs are either: tree based - the entire document is read into memory as a tree structure for random access by the calling application event based - the application registers to receive events as entities are encountered within the source document. Both have advantages; the former allows for random access to the document, the latter requires a small memory footprint and is typically much faster. These two access metaphors can be thought of as polar opposites. A tree based API allows unlimited, random, access and manipulation, while an event based API is a 'one shot' pass through the source document. StAX was designed as a median between these two opposites. In the StAX metaphor, the programmatic entry point is a cursor that represents a point within the document. The application moves the cursor forward - 'pulling' the information from the parser as it needs. This is different from an event based API - such as SAX - which 'pushes' data to the application - requiring the application to maintain state between events as necessary to keep track of location within the document.
  • Streaming API for XML (StAX) ist ein Application Programming Interface (API), um XML-Dateien aus Java zu verarbeiten. Traditionellerweise sind XML-APIs: baumbasiert – das gesamte Dokument wird als Baumstruktur in den Speicher gelesen und kann von dort direkt zugegriffen werden. ereignisbasiert – die Anwendung bekommt ein Ereignis, wenn neue Entities im Dokument entdeckt werden. Beide Varianten haben Vor- und Nachteile: die erste erlaubt wahlfreien Zugriff auf das Dokument, muss aber das Dokument im Speicher halten und benötigt somit mehr Speicher. Die zweite ist ein einmaliger Durchlauf durch das Quelldokument und benötigt somit kaum Speicher und ist auch schneller beim Parsen, erlaubt aber keinen direkten Zugriff auf Elemente oder Änderungen des Baumes. StAX wurde als ein Mittelweg zwischen diesen beiden Gegensätzen entworfen. In der StAX-Metapher ist der programmatische Einstieg ein Cursor, der eine Stelle im Dokument repräsentiert. Die Anwendung bewegt den Cursor vorwärts, sie holt also die benötigte Information genau dann vom Parser, wenn sie benötigt wird. Dies unterscheidet sich von einer ereignisbasierten API, wie SAX, die die Daten aktiv in die Anwendung schickt und somit die Anwendung zur Verwaltung von Zustandsinformationen zwischen Ereignissen zwingt, um darin die aktuelle Position im Dokument festzuhalten.
  • Streaming API for XML ou StAX est une API permettant d'exploiter les documents XML. Tout comme SAX, StAX n'encombre pas la mémoire et le document est lu linéairement, mais c'est l'application qui tire explicitement l'information du document (avec SAX, l'information est envoyé à l'application comme un événement). Tout comme DOM, c'est l'application qui détermine ce qui doit être lu et à quel moment. D'une certaine manière, StAX se base sur le motif de conception itérateur.
  • Streaming API for XML(StAX)は、JavaでXML文書を読み書きするためのAPIである。 従来のXML APIは、次のどちらかである。 ツリーベース - 文書全体がツリー構造でメモリに読み込まれ、呼び出し元アプリケーションはランダムアクセスできる。 イベントベース - 文書内に出現したエンティティごとに、登録されたアプリケーションがイベントを受け取る。 これらはそれぞれに利点がある。前者(例えばDOM)は文書へのランダムアクセスが可能であり、後者(例えばSAX)は使用メモリが少なくより高速に動作する場合が多い。 この2つは対極に位置するアクセス手法であると言える。ツリーベースのAPIは制約のないランダムアクセスとデータの操作が可能である一方、イベントベースのAPIは文書を1回スキャンするだけである。 StAXは、その中間の手法として設計された。StAXの考え方では、プログラムの操作点は文書内のある地点を指すカーソルである。アプリケーションがカーソルを進めるということは、必要に応じて自分がパーサーから情報を取り出すことになる(pull型)。これはSAXのようなイベントベースのAPIとは異なる。SAXではパーサーがアプリケーションにデータを送りつけるので(push型)、アプリケーション側が文書内の位置を追跡しなければならない場合は必要に応じてイベントとイベントの間で状態を保持しておく必要がある。
  • StAX (Streaming API for XML) jest interfejsem programistycznym aplikacji (API) napisanym w języku Java służącym do odczytywania i zapisywania dokumentów w formacie XML. Standard ten jest zrealizowaną w Javie ideą parsowania strumieniowego. Został on opracowany w ramach JSR-173, a implementacja parsera była znana także jako Sun Java Streaming XML Parser.
dbpprop:hasPhotoCollection
dbpprop:reference
rdf:type
rdfs:comment
  • Streaming API for XML (StAX) is an application programming interface to read and write XML documents, originating from the Java programming language community. Traditionally, XML APIs are either: tree based - the entire document is read into memory as a tree structure for random access by the calling application event based - the application registers to receive events as entities are encountered within the source document.
  • Streaming API for XML (StAX) ist ein Application Programming Interface (API), um XML-Dateien aus Java zu verarbeiten. Traditionellerweise sind XML-APIs: baumbasiert – das gesamte Dokument wird als Baumstruktur in den Speicher gelesen und kann von dort direkt zugegriffen werden. ereignisbasiert – die Anwendung bekommt ein Ereignis, wenn neue Entities im Dokument entdeckt werden.
  • Streaming API for XML ou StAX est une API permettant d'exploiter les documents XML. Tout comme SAX, StAX n'encombre pas la mémoire et le document est lu linéairement, mais c'est l'application qui tire explicitement l'information du document (avec SAX, l'information est envoyé à l'application comme un événement). Tout comme DOM, c'est l'application qui détermine ce qui doit être lu et à quel moment. D'une certaine manière, StAX se base sur le motif de conception itérateur.
  • StAX (Streaming API for XML) jest interfejsem programistycznym aplikacji (API) napisanym w języku Java służącym do odczytywania i zapisywania dokumentów w formacie XML. Standard ten jest zrealizowaną w Javie ideą parsowania strumieniowego. Został on opracowany w ramach JSR-173, a implementacja parsera była znana także jako Sun Java Streaming XML Parser.
rdfs:label
  • StAX
  • Streaming API for XML
  • Streaming API for XML
  • Streaming API for XML
  • StAX
owl:sameAs
skos:subject
foaf:page
is dbpprop:disambiguates of
is owl:sameAs of