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

wshawn opened this Issue Jun 25, 2015 · 2 comments


None yet

2 participants

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.


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

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