Hello and welcome to another lecture in this lecture, we will discuss about this in Bolivia for a similar
sex bar exam and password.
So have you gone through many of the things in the last previous examples and all?
So in this lecture, we will cover examine how it works and well passing the exam elements, extended
markup language and it is used to store data and it is a markup language.
It consists of data and tags, and we will be passing through each day using these small.
So those are basically those tools to use to process a file so that you will be able to retrieve the
data from the included file and complete information of the report, a particular event so that it about
passing in order to see how these accessing the will work.
So it does not trigger any memory because it does not hold any structure of the particular single file
in order to create the structure of the file or object.
It is not created, it will only create trigger events and then the event will be triggered.
When you reach the start of that tag, I know the target and then got it is found in the desert.
So for all those things that there will be events triggered based on the events trigger, we are trained
to handle those functions.
So the handler matterson will be used to do it right, the logic for how to create the object.
So we will create our objective based on the handler functions.
And so that is the word common understanding things about this and will it be a similar attacks in El
Paso?
So now let us go through some programs based on the fact that some of the.
No, that I see a program based on sex, some of the are so in this program, we will have bought a
company and its employees and we will pass all the data of the employees and we will generate an object
list of employees based on that particular example that the ZTE Axon will decide.
So this isn't a standard axiom as well.
So in this example file, you can see there are different tax.
So each target will be processed the one billion a year again, the company to the company targets them
and also I would alter that and insert a company that that is an employee.
Does it say that those employees a.m. Each employee will have Heidi name and age tags into them and
his dad will hold that particular data.
So this is all the subset of next someone's will finally look like.
No, let us see the problem.
No, let us see the the objectivity I will be storing, the particular values of the exam as well.
So this is the employer objected.
So the lady name and the three fields are similar to the external sector.
Whatever the employee has that all fields are declared, so this object will be saved and we will be
storing based on this employee object, and it will be alleged to be restoring no legacy the implementation
of all the taxes and course.
Those exceptional bastards implemented by extending a class called as a default handler and creating
a handler plaza, so the handler granted classes are responsible for getting all day triggered events
based on the documented bags.
So if any document, for example, there is a start of a document, then there will be an event and
of a document that there will be an event e to get a personal trigger name.
And it and each element will trigger event, such as that element and then element.
So all the events will be handled using this particular handler plaza.
So let us start this class.
So first thing to understand is we need some variables to store the values of the West in other listeners
are quite distorted and production off of objectivity will be our final output.
And after that, there will be we need an employee object wholly to each instance of the particular
tag.
So that is also required under an because of event.
Flags or multiple flags are required so that these characters event and these this element event, this
event will not find out.
You're not able to find out from the outside which which target is going out.
So we need flags to handle those, those conditions.
So we are ignoring some flags and to be globally, we are declaring the flags.
And you can see the first two events are going to first handler in the function and limited, which
is that element.
And like that, as you can see, start element and element and document the characters.
And in many, many events that you can see.
And then.
So, no, let us start from the top.
So we'll go to this document first.
So here it's just a document and before handlers function.
So here you can see it will trigger the body, even though the amended when the document is started.
And the reason that we are creating a list and initiating that a listing and after that.
Nice design ended up going into ended argument, but we will be spending that at least so that minded
the idealist will be completely done.
We go into the next semester, next summer is a.
Start element is one element that will be triggered when needs to get started to reach targets inside
the building, not my main target.
This event will be occurring.
So for that?
You can see the logic for employing creating an employee employer objective and setting the flag for
others, we are just setting the particular flags.
And that's it about this are relevant.
No, let us go to the characters, even though I've offered this idea and to no and will be rewarded,
which will be outputting the particular characters present in the particular file.
It is seen in the bill and you can see the cute name with all the vertical.
They deliver value, and we are think through the medium, the value so similar to that and here in
this case, in this way.
This is array will be holding the get all the character values.
So I'm using the string class concept.
Consider to split the particular string and get the particular string of representation of the card
right there.
And we will get the string of the vertical or whatever the values suppose.
And in the particular tag, we will get it.
And based on the flags, which we said in this article Monday, we will be passing out of the movie
for review setting the values of the ID, name and age.
You can see it in passing using Bathinda because it is in string value, so we need to pass it to and
their value.
And similar to that and that is in doing it for age also and for him, I don't need to do that because
it's going to be a string.
And after that, finally we had.
It.
And the element and element and element beautiful, her handler function.
So an element, you just need to set all the flags to follow.
So that is only we will do in that particular part.
That's it about this basic day and function logic.
You can see how handling the function to input the of system would open the lens in all the particular
files and so that we will be able to identify each event when needed, when it will be triggered.
Now let us go through the main method.
No, that I see the main method in the main material, see, we are writing some logic so that we will
be passing the exam well documented.
So a little sad.
So you can see the main method declared it can be updated and the object is acquired so that you will
be passing the handler of the to the bottom method so that we will be able to pass the document.
And Eric A..
I'm creating this exposed sort of factory object using the sex workers an aesthetic third new instance.
And after that and creating this vast explosion of data, I'm guessing that this expert part of trade
or the.
Nuclear experts.
And after that, using the past method in return to place a particular location as well as the handler
we did, we tell you return.
So any time a handler has all the functionality to catch the particular event and you had already written
the code to consider object based on that.
And there are some exceptions which are here, all the exceptions to the letters on this program.
So you're going to still go to the top, you can see each events that triggered verboten consular assistance
or condolences for all the particular values you're going to know, even targeting for each event it
is pending the IT one day when you can take it over.
It's a long, long list.
And after that, finally, you can see before and even though I am printing out the list, which we
have consecutively using the default handler.
So yet again, a.
All the values are coming in, said the list.
This is a branding print of the list of all the various upcoming in the listed in name age and the all
the values are coming.
So this is it for this program.
So in this letter, we're seeing about 36 amateur boxer pages used to parse essential documents.
So we have learned about how to vastly using example berserk.
So now let us see.
In the next lecture, we will discuss about the next to the Example parser, which is known parser.
Thank you for writing this lecture.
I'll be back with the next little thing.