Add toXML() and fromXML() to xPDOObject #68

Open
wshawn opened this Issue Jun 25, 2015 · 2 comments

Projects

None yet

2 participants

@wshawn
wshawn commented Jun 25, 2015

With the rest service recently added to MODX, it may prove advantageous to provide functions to allow xpdo to directly interact with XML requests and responses.

@ianbrind
Contributor

Would fromXML() be expected to handle both string and SimpleXMLElement?

@wshawn
wshawn commented Jun 27, 2015

My first thought would be a SimpleXMLElement Object with array items keyed as Item /Item. I am thinking the entire object should easily be transferable to and from a SimpleXMLElement representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment