I want get the xml string from an object using XmlPullParser,and  
the final xml strings should be something like this below:

<?xml version='1.0' encoding= 'UTF-8'?>
<soap:Envelope   
    xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
     >  

    <soap:Body >

        <GenerateToken xmlns ="http://yoid.org/"; >

            <rasPublicKey >
            W954egzsko/0f7ZBrJJzNYTOH9zvevkRxNNldyEUsAAKjJhsdps=              
           </rasPublicKey >

            <password >
               dk7876
            </password >

        </GenerateToken >
    </soap:Body >

</soap:Envelope>

But,it comes out to be wrong. like this:

<?xml version='1.0' encoding= 'UTF-8'?>
<n0:Envelope  
    xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:n0="soap"     >

    <n0:Body >

        <GenerateToken xmlns ="http://yoid.org/"; >

            <rasPublicKey >
            W954egzsko/0f7ZBrJJzNYTOH9zvevkRxNNldyEUsAAKjJhsdps=              
           </rasPublicKey >

            <password >
               dk7876
            </password >

        </GenerateToken >
    </n0:Body >

</n0:Envelope>

What is going wrong? I have no idea.
Someone can help me?  


--  
Nick Hwang
已使用 Sparrow (http://www.sparrowmailapp.com/?sig)

已使用 Sparrow (http://www.sparrowmailapp.com/?sig)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to