So I've been given an XML-file of the format
<Level1 name="Foo1">
<Level2 name="Foo2">
<Level3 name="Foo3">
</Level3>
</Level2>
</Level1>
I'm supposed to read to parse a file formatted accordingly in my Java program. Does Java have any built-in functionality with XML (for example seeing what level a node is on etc) or do I have to scan it using a regular scanner and just read the input as I would a normal text file? I've been specifically told not to use any existing parser or external libs or such.