XPath does not work for selecting in XML
问题 I have an XML document and for the life of me I cannot get data by using XPath. I've tried every sample I could find and no luck. I'm trying to extract the email address. Any thoughts? The XML: <?xml version="1.0" encoding="UTF-8"?> <Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd"> <typeId root="test1" extension="test2"/> <id root="test3" extension="test4"/> <code code="test5" codeSystem="test6" />