You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess $request->all() (with the middleware) provides the parsed XML with all attributes removed, which may be sufficient for many use-cases. If an API wants to parse the XML in more detail then the raw XML is available through $request->getContent().
Correct. I think accessing through $request->all() should stay as it is as an array without attributes. Changing the handling of $request->xml(false) to return SimpleXMLElement instead of stdClass would provide a little more flexibility and not strip those attributes. Or should there be another method to retrieve the data with attributes?
The XML is parsed into a nice structure, but it seems only to parse text nodes into strings, and nested elements into nested objects.
What I don't see, is what happens to any attributes on an element. Are they lost? I don't see them come through in some simple experiments.
The text was updated successfully, but these errors were encountered: