What analysis method does XMLTextReader use? I'm confused. Sax or Dom?
Neither one is pull parser . It does not create a full object model in memory (DOM) and does not analyze the entire document without raising events that the client can respond to (SAX).
Instead, the client controls the parsing by asking the parser to do a little more reading, then check its status and respond accordingly, and then ask it to read a little more, etc.
, SAX Java- api. - - push, XmlTextReader .
DOM - W3C,.NET DOM 1 2. XmlDocument, XmlTextReader.
XmlTextReader XML ( Java StAX), SAX/push. , , , , (, SAX pull, ).
DOM XML- .
SAX XML- . , , .
The XMLTextReader reads one XML token at a time, so it is closer to SAX, but it does not provide callbacks.
Source: https://habr.com/ru/post/1705469/More articles:Does tomcat spring beans need to worry about concurrency? - javaGoing through UIView to UIScrollView not working - iphoneЯвляются ли анонимные типы полезными для использования вне LINQ? - c#mono for released - embeddedhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705468/how-can-i-convert-urls-to-markdown-syntax-but-not-interfere-with-urls-already-in-markdown-syntax&usg=ALkJrhheG8Xs335nSDLMJgpkHtmPDeWUgwUsing unequal joins - sqlRemoving an Image Associated with a Control - c #Как я могу создать заголовок мыла, как это? - soapHow do you test the code you wrote yourself? - unit-testingLinqPad Function - Does VS Do It? - c #All Articles