EntryManager->fetch() to XMLElement / DOMDocument
This is an open discussion with 2 replies, filed under General.
Search
You need to create this yourself. EntryManager returns an array of Entry objects so you need to loop over and build XMLElement
objects, like:
https://github.com/nickdunn/symql/blob/master/lib/class.symql.php#L322-343
I would have used Nick's SymQL which does this by default, but it's not handling multiple where values in this case.
Shame, sounds like this is a blocking bug :-/
Great - thanks for the example, Nick.
Create an account or sign in to comment.
When using
EntryManager->fetch()
to grab entry data asEntry
objects, how can I put them into either anXMLElement
orDOMDocument
object so that I can use Xpath on them in PHP?I would have used Nick's SymQL which does this by default, but it's not handling multiple where values in this case.