xml - Does PHP simplexml_import_dom convert the full DOM? -


i have xml document importing php dom , validating xsd (relaxng not option). want turn dom simplexml processing. function simplexml_import_dom seems thing use, documentation says "this function takes node of dom document , makes simplexml node." implies 1 node converted, not full dom tree. correct?

i xml simplexml re-reading file, wasteful. if simplexml_import_dom not full dom tree, how convert dom simplexml? i've looked example code recursive dom traversal have not found examples. suggestions?

simplexml objects/elements/nodes include children. simplexml_import_dom function handles recursion you.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -