hello, you know you can create a simple client to connect to XML-RPC wordpress to publish post for example. but I try to send data from a file with $read, does not preserve the structure of xml me and gives me error, goes like this:

Code:
<?xml version="1.0"?>
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param>
<value>
<i4>1</i4>
</value>
</param>...



  and should go like this:

Code:
<?xml version="1.0"?>
<methodCall>
  <methodName>metaWeblog.newPost</methodName>
  <params>
    <param>
      <value>
        <i4>1</i4>
      </value>
    </param>
    <param>...



you know if there's any way to fix this? Greetings

pd: server response...
Code:
<value><string>parse error. not well formed</string></value>

Last edited by Perl; 18/08/15 11:05 PM.