I am trying to read XML elements without using elements name i.e. "Books" from the following example. for e.g.
<Books>
<book>
<title>C++</title>
<author>A</author>
</book>
<book>
<title>XML</title>
<author>X</author>
</book>
</Books>
In other words How to dynamically read "Books" element and assign children element to array using jquery in HTML. Any help would be appreciated.
children(),closest(),first(),last(),next()and a hundred other methods without using the tagname, but you can't get all tags with a certain name unless you select them by name, or if they are all children of the same element etc.