[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JDEV] Element.h Usage



Hey...

Okay, here's a brief rundown of the elements.h operations and data
type...

The base type <element> represents an atomic chunk of a XML document.
It can be one of three types:
1.) Attribute
2.) Tag
3.) CDATA

Each <element> has contains a series of pointers internally that
represent the location of the element in the hierarchy of the XML
document. Let's parse out a couple of samples and see what we wind up
with in terms of elements...

To begin, something simple:

XML packet: 
<login>
	<user>dave</user>
	<pass>dude</pass>
</login>