Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18787

Re: simplexml_load_string problem

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: simplexml_load_string problem
Date 2021-09-09 14:01 +0200
Message-ID <ipubchFim98U1@mid.individual.net> (permalink)
References <shckdp$1uo2$1@gioia.aioe.org>

Show all headers | View raw


Torakiki:

> I get this XML's file via HTTPS POST
> 
> =============================
> <?xml version="1.0" encoding="UTF-8" ?>
> <root>
> 	<authToken type="str">P0.qw1PI</authToken>
> 	<fileDataOra type="str">2017-02-21T10:42:59</fileDataOra>
> 	<fileMime type="str">application/pdf</fileMime>
> 	<fileNome type="str">Test.pdf</fileNome>
> 	<fileBase64 
> type="str">JVB 

[...]

> 	<fileCodice type="str">Sem</fileCodice>
> 	<sinistroNumero type="str">17/79664</sinistroNumero>
> 	<codiceIncarico type="str">668</codiceIncarico>
> </root>
> =============================
> 
> and put in a string ($STR) the whole XML.
> 
> Then
> 
> $NEWSTR=simplexml_load_string($STR);
> 
> If I print the TAG "fileBase64" I get the same string but with one space 
> instead character "+"
> 
> simple_load_file() instead works fine, but I can't use.

I can't reproduce this here. Works fine with PHP 7.4.23 (cli).

Which PHP version do you use? How did you test it?


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

simplexml_load_string problem Torakiki <torakiki.sanNIENTE@SPAMgmail.com> - 2021-09-09 11:33 +0200
  Re: simplexml_load_string problem Arno Welzel <usenet@arnowelzel.de> - 2021-09-09 14:01 +0200
    Re: simplexml_load_string problem Torakiki <torakiki.sanNIENTE@SPAMgmail.com> - 2021-09-11 18:53 +0200
  Re: simplexml_load_string problem "J.O. Aho" <user@example.net> - 2021-09-09 15:41 +0200
    Re: simplexml_load_string problem Torakiki <torakiki.sanNIENTE@SPAMgmail.com> - 2021-09-11 18:55 +0200
      Re: simplexml_load_string problem "J.O. Aho" <user@example.net> - 2021-09-11 21:31 +0200
        Re: simplexml_load_string problem Torakiki <torakiki.sanNIENTE@SPAMgmail.com> - 2021-09-11 21:52 +0200
  Re: simplexml_load_string problem Härra Ramob <ya12983@mail.ee> - 2022-01-05 00:40 -0800

csiph-web