Given a XML object, how could I retrieve only the root element without retrieving together its children?E.g.:\[code\]var exampleXml = new XML("<parent name="Teste"><child/><child2/><child3/></parent>");exampleXml.getOnlyRootElement(); //<parent name="Teste"/>\[/code\]I've found this solution - Flex e4x filter out children - but I didn't like it very much. Is there a better one?PS: I'm running javascript in an windows app using SpiderMonkey.Thanks