SAX
מתוך ויקיפדיה, האנציקלופדיה החופשית
Simple API for XML או בקיצור SAX, ממשק תכנותי המאפשר גישה סדרתית למבנה XML כלשהו. SAX מגדיר מנגנון לקריאת נתונים ממסמך XML. ממשק תכנותי זה הוא תחליף פופלרי לממשק התכנותי Document Object Model (בקיצור DOM).
מנתח XML המממש את הממשק התכנותי של SAX, מטפל במבנה XML כזרם נתונים חד-כיווני. כלומר, לא ניתן לקרוא שוב נתונים שנקראו כבר, ללא ניתוח מחדש של המבנה. שיטה זו, על אף הקושי היחסי בשימוש בה, היא המהירה ביותר לניתוח מבני XML, ושטחי הזיכרון הנדרשים תוך כדי העבודה קטנים משמעותית מהנדרש בשיטות אחרות, ובמיוחד DOM.
[עריכה] ראו גם
[עריכה] טכנולוגיות ניתוח XML נוספות
- Document Object Model (DOM).
- XSL Transofmation (XSLT).
- Streaming API for XML (StAX).
[עריכה] מנתחי XML המממשים SAX
- Xerces.
- MSXML.
- Crimson XML.
- JAXP (Java API for XML Processing).
- LibXML.