Working with Asterisk and trying to get the PIDF-LO document from the SIP body (location by value)? Look at this patch for Asterisk:
https://issues.asterisk.org/view.php?id=15552
Comments and feedback on this patch are appreciated. Note that it is actually not restricted to PIDF-LO, you can also retrieve other body parts.