New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@wshawn
Copy link

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

This comment has been minimized.

Copy link
Contributor

ianbrind commented Jun 26, 2015

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

@wshawn

This comment has been minimized.

Copy link

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