Announcement

Collapse
No announcement yet.

Output Structure as XML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Output Structure as XML

    Are there any built-in functions that will output a Miva structure as XML? I think I can use some combination of miva_array_serialize and get_token functions to split up my data, but that seems very tedious. The data structure is multi-dimensional, so I'll need to be able to loop through child elements.

    #2
    There's nothing built-in for that. But instead of serializing, you can probably use miva_array_elements() and miva_struct_members() to analyze the structure of a complex object.
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      Thanks, Kent. I'll try that.

      Comment

      Working...
      X