Back to XML features

I need a convenient way to isolate a specific object inside a JavaScript
structure. My idea is to implement an XPATH search inside an XML
serialized JavaScript object. Started the serialization part.