Re: Not understood error... [message #178153 is a reply to message #178146] |
Tue, 15 May 2012 17:36 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
taltene(at)gmail(dot)com wrote:
^^^^^^^^^^^^^^^^^
Who?
> […]
>
> This page contains the following errors:
>
> error on line 1 at column 13: expected '='
> Below is a rendering of the page up to the first error.
That is _not_ a server-side PHP error message, it is a client-side error
message printed by your browser (and its XML parser).
> -----------------------------------------------------------------
>
> And this is what I get when I "view source" this page:
>
> -----------------------------------------------------------------
>
>
> <?xml version\=\"1.0\" encoding\=\"UTF-8\"?>
> <soap-env:envelope
> xmlns:soap-env\=\"http://schemas.xmlsoap.org/soap/envelope/\"
> xmlns:soap-enc\=\"http://schemas.xmlsoap.org/soap/encoding/\"
> xmlns:xsi\=\"http://www.w3.org/2001/xmlschema-instance\"
> xmlns:xsd\=\"http://www.w3.org/2001/xmlschema\"
> xmlns:al\=\"http://www.alcatel-lucent.com/soap_cm\"
>
xmlns:gd\=\" http://www.3gpp.org/ftp/specs/archive/32_series/32317/schema/32317-700/gene ricirpdata\"
>
xmlns:bs\=\" http://www.3gpp.org/ftp/specs/archive/32_series/32607/schema/32607-700/basi ccmirpsystem\"
>
xmlns:bd\=\" http://www.3gpp.org/ftp/specs/archive/32_series/32607/schema/32607-700/basi ccmirpdata\">
> .<soap-env:body> ..<bd:createmoresponse> ...<mo>
>
.....<moilocation> impiid\=+{__impiid},imsserviceprofileid\=1,sumsubscriptionprofileid\=1,sums ubscriberprofileid\=+{__msubscriberprofileid}_at,subscriptionfunctionid\=1, managedelementid\=hss1 </moilocation>
> ...</mo> ..</bd:createmoresponse> .</soap-env:body> </soap-env:envelope>
>
> --------------------------------------------------------------------
Apparently someone thought it would be a good idea to add backslashes in an
XML document to "escape" equals and quotes, which it obviously is not. The
problems you are having and the parser error message that you are getting
indicate (actuall, they show clearly) that the XML document to be processed
(which can only be surmised as you failed to show the relationship) is not
XML well-formed. For example, the first line should be
<?xml version="1.0" encoding="UTF-8"?>
One you have fixed that, there should be less problems. However, as you
have not noticed that obvious error, you should reconsider doing any Web
programming and starting to learn HTML (and, by extension, XML) first.
Then you should look into one of the several markup parsers that PHP
provides so that you can eventually dump that inefficient, error-prone
properties parser you have written (or included by copy-and-pray).
> Any help will be blessed.
I am _not_ calling you "God".
--
PointedEars
|
|
|