I'm trying to use the XML API for Cisco IOS XR (Docs: Cisco IOS XR XML API Guide, Cisco IOS XR Release 4.1) but I'm not sure what library to use in PHP (simpleXML?) to just open a TCP connection to a port on a device and start reading and writing XML to it.

I understand the concept of the schemas and such, but everything I can find about PHP and XML seems to be oriented towards web services, POST, etc, and this is simply reading and writing XML.

有帮助吗?

解决方案

What you mean is opening, reading and writing to a socket. Read the documentation on this subject for more information. The xml is just an accessory to your actual communications, which will happen, one way or another, via sockets.

EDIT: And thus you will not need any library since sockets are part of php by default.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top