Hello,
I'm working with the Twitter API, and upon issuing a call, I get an XML string with some information before it. I took out the extra characters and just to be sure I ended up with a clean XML string, I issued the trim() function. The result is the following:
string(1819) "
<?xml version="1.0" encoding="UTF-8"?>
<user>
<id>45092875</id>
<name>Ramell</name>
<screen_name>YaBoyMell3</screen_name>
<location>ÜT: 40.754951,-73.772651</location>
<description></description>
etc. etc. etc.
</status>
</user>
"
Notice that the string length is returned always, as well as enclosing the ENTIRE XML string in QUOTES. When I issue a simplexml_load_string command, I get parse error because it doesn't see the "<" character as the first one in the XML string.
I'm stuck because PHP always returns the string length and I can't get rid of it. The simplexml_load_string won't work at all.
Is there any way to turn off the string length parameter? Or is the problem something else?
Thanks very much for your help!!