I am working on interfaces recently, but interface requests and responses are all in the form of data in xml format. This is my first time coming into contact with xml and I don’t know much about it. I hope the experts can give me some advice.
I am working on interfaces recently, but interface requests and responses are all in the form of data in xml format. This is my first time coming into contact with xml and I don’t know much about it. I hope the experts can give me some advice.
Just send it as a string. . . There are parsers such as simplexml. You can take a look. In fact, you can treat it as string concatenation.
When parsing, PHP comes with many functions
http://php.net/manual/zh/refs...
Sending xml is actually sending strings or json, there is no difference