PHP Classes

Bug or error in xml

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Bug or error in xml  >  (Un) Subscribe thread alerts  
Subject:Bug or error in xml
Summary:with parsed > in a text
Messages:2
Author:Juan Alvarez
Date:2017-08-10 15:23:09
 

  1. Bug or error in xml   Reply   Report abuse  
Picture of Juan Alvarez Juan Alvarez - 2017-08-10 15:23:09
Hi, thanks for great parser.

I have been used the parser and works like a charm.

I have just now a problem with a text in a xml.

I process some xml in emails, one of them has the following :

<root> ...
<someTag>Someone here &gt;<someTag>
</root>

The parser returns ok, but the parsed text is not a valid xml string.

How can i fix it ?

  2. Re: Bug or error in xml   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-08-11 07:19:31 - In reply to message 1 from Juan Alvarez
The MIME parser does not parse the contents of each message part because that is not what the MIME parser is supposed to parse.

Each part may contain valid XML or not. If you need to check the XML itself, you can use a separate XML parser like this other one:

phpclasses.org/package/4-PHP-Arbitr ...