zaus / forms-3rdparty-xpost

Converts external submission from [Forms: 3rdparty Integration](http://wordpress.org/plugins/forms-3rdparty-integration/) plugin to XML post; optionally can add custom headers (to allow SOAP submissions).
4 stars 2 forks source link

Allow nesting elements / xml post structure #1

Closed zaus closed 10 years ago

zaus commented 10 years ago

Via support forum thread http://wordpress.org/support/topic/xml-post-structure -- allow nesting fields with a separator (/, configurable) to indicate child elements.

e.g.

Form 3rd
input_1 permissions/username
input_2 permissions/password
input_3 card_type
input_4 cust_details/x
input_5 cust_details/y
input_6 cust_details/z

would translate to

<root>
   <permissions>
      <username>value</username>
      <password>value</password>
   </permissions>
   <card_type>value</card_type>
   <cust_details>
       <x/><y/><z/>...etc
   </cust_details>
</root>
zaus commented 10 years ago

work started branch iss1-nested-fields

zaus commented 10 years ago

Complete per #2 -- I even snuck in the ability to set element attributes with @