List Info

Thread: Data mismatch while reading xml thro parsing




Data mismatch while reading xml thro parsing
user name
2007-08-14 05:11:44
Hi,

    There is a requirement in our company to parse the xml
and load
the data in database and can be used for processing.

    I have used xml_parse command to parse through the xml
and get the
data.

   In my xml, the apostrophe (') is changes as follows
' and >
symbol is changed as > and due to this the data read
by the above
method is not correct (skips some characters).

    The sample data would look like

      <freehand>HERE AT LONESTAR CHRYSLER DODGE JEEP 
WE DON&apos;T
MISS DEALS BECAUSE OF PRICE!  </freehand>


    The data given by xml_parse is "T MISS DEALS
BECAUSE OF PRICE!"
instead of "HERE AT LONESTAR CHRYSLER DODGE JEEP  WE
DON&apos;T MISS
DEALS BECAUSE OF PRICE!"

Any help regarding this would be required...
Thanks in advance,

Regards,
Guru


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/phpmysql?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )