Click here to Skip to main content
15,434,217 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch22-Dec-20 20:41
mvahoney the codewitch22-Dec-20 20:41 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
Randor 22-Dec-20 21:01
professional Randor 22-Dec-20 21:01 
AnswerRe: Who here knows what a pull parser or pull parsing is? Pin
Keith Barrow22-Dec-20 23:02
professionalKeith Barrow22-Dec-20 23:02 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch23-Dec-20 1:09
mvahoney the codewitch23-Dec-20 1:09 
AnswerRe: Who here knows what a pull parser or pull parsing is? Pin
Jörgen Andersson23-Dec-20 0:42
professionalJörgen Andersson23-Dec-20 0:42 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch23-Dec-20 1:08
mvahoney the codewitch23-Dec-20 1:08 
AnswerRe: Who here knows what a pull parser or pull parsing is? Pin
PIEBALDconsult24-Dec-20 5:42
professionalPIEBALDconsult24-Dec-20 5:42 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 9:50
mvahoney the codewitch24-Dec-20 9:50 
That's not exactly what a pull parser is.

A pull parser parses one small step at a time before returning control to the caller.

C++
while(reader.read()) {...}


You call it like that, and inside the loop you check the nodeType() and the value() and such to get information about the node at the current location.

Microsoft built one for XML in .NET call the XmlReader - you've probably used a derivative of it before, if not directly, then indirectly by way of another XML facility like XPath or the DOM

NewtonSoft has one for JSON but I don't like it, personally.
Real programmers use butterflies

GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
PIEBALDconsult24-Dec-20 10:23
professionalPIEBALDconsult24-Dec-20 10:23 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 10:54
mvahoney the codewitch24-Dec-20 10:54 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
PIEBALDconsult24-Dec-20 11:32
professionalPIEBALDconsult24-Dec-20 11:32 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 11:45
mvahoney the codewitch24-Dec-20 11:45 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
PIEBALDconsult24-Dec-20 13:17
professionalPIEBALDconsult24-Dec-20 13:17 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 13:24
mvahoney the codewitch24-Dec-20 13:24 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
PIEBALDconsult24-Dec-20 14:23
professionalPIEBALDconsult24-Dec-20 14:23 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 15:56
mvahoney the codewitch24-Dec-20 15:56 
GeneralRe: Who here knows what a pull parser or pull parsing is? Pin
honey the codewitch24-Dec-20 16:03
mvahoney the codewitch24-Dec-20 16:03 
AnswerRe: Who here knows what a pull parser or pull parsing is? Pin
User 1493685330-Dec-20 10:25
MemberUser 1493685330-Dec-20 10:25 
JokeI'm isolating over Christmas, so... Pin
DerekT-P22-Dec-20 10:23
professionalDerekT-P22-Dec-20 10:23 
GeneralRe: I'm isolating over Christmas, so... Pin
DRHuff22-Dec-20 11:18
MemberDRHuff22-Dec-20 11:18 
GeneralRe: I'm isolating over Christmas, so... Pin
Joe Woodbury22-Dec-20 11:28
professionalJoe Woodbury22-Dec-20 11:28 
GeneralDid I fall asleep for a few months, and it's April 1st? Pin
OriginalGriff22-Dec-20 10:18
mveOriginalGriff22-Dec-20 10:18 
GeneralRe: Did I fall asleep for a few months, and it's April 1st? Pin
DerekT-P22-Dec-20 10:25
professionalDerekT-P22-Dec-20 10:25 
GeneralRe: Did I fall asleep for a few months, and it's April 1st? Pin
OriginalGriff22-Dec-20 10:26
mveOriginalGriff22-Dec-20 10:26 
GeneralRe: Did I fall asleep for a few months, and it's April 1st? Pin
RickZeeland22-Dec-20 19:36
mveRickZeeland22-Dec-20 19:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Who do you listen to most when making decisions about software development?
  Results   461 votes