XML class

I am trying to make use of the nodeType property but the default XML class used by the flash player only recognises 1 (elementNode) and 3 (textNode) it states this in the Help under nodeType so how do I load another class into flash that supports all the other types and where do I find the relevant class?

Thanks in advance.