Reputation: 13
we are trying to pass a file in form data but we are unable to remove the hyphens, Content-Disposition and Content-Type.
----------------------------376203720009485735911622
Content-Disposition: form-data; name=""; filename="Sample.xml"
Content-Type: application/xml
<Root>
<Name> Naruto </Name>
<Occupation> Hokage </Occupation>
</Root>
----------------------------376203720009485735911622--
Upvotes: 0
Views: 151
Reputation: 16718
Your file does not contain valid XML. It contains a multipart HTTP payload with one part of type XML, but everything related to the multipart format must be stripped away before you can feed this into an XSLT processor:
Upvotes: 0