I connect to a SOAP service that returns the following:
<xs:schema xmlns:mstns="http://tempuri.org/dsPDFGuia.xsd" xmlns="http://tempuri.org/dsPDFGuia.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="dsPDFGuia" targetnamespace="http://tempuri.org/dsPDFGuia.xsd" attributeformdefault="qualified" elementformdefault="qualified"><xs:element name="dsPDFGuia" msdata:isdataset="true" msdata:usecurrentlocale="true"><xs:complextype><xs:choice minoccurs="0" maxoccurs="unbounded"><xs:element name="Guia"><xs:complextype><xs:sequence><xs:element name="Inicial" type="xs:long" minoccurs="0"><xs:element name="Final" type="xs:long" minoccurs="0"><xs:element name="BytesImagen" type="xs:base64Binary" minoccurs="0"></xs:element></xs:element></xs:element></xs:sequence></xs:complextype></xs:element></xs:choice></xs:complextype></xs:element></xs:schema><diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><dspdfguia xmlns="http://tempuri.org/dsPDFGuia.xsd"><guia diffgr:id="Guia1" msdata:roworder="0"><inicial>290005680</inicial><final>290005680</final><bytesimagen>ARCHIVO_CODIFICADO_BASE64</bytesimagen></guia></dspdfguia></diffgr:diffgram>
For what I need to use the content of the tag bytesimage but I do not know how to get this value from PHP. Getting this value I know how to decode it and use it to show the pdf, but it gets in the way of all the xml code.