Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [solved] Extensions to Xmlize for arrays
Re: Extensions to Xmlize for arrays [message #32508 is a reply to message #32489] Mon, 23 May 2011 09:53 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
tojocky wrote on Fri, 20 May 2011 18:20

cbpporter wrote on Fri, 20 May 2011 12:59


This change is only meant for Array and Vector marshaling, but could be extended to rest of the containers.

So now I can do:

xml("cats", cats);


for the original XML format, or:

xml("cats", "cat", cats);

for the format I want.


What about if your Array cats have items with array type?


Not a problem. My patch does not affect your serialization, since you need to write extra code to change the sub item name. But if you do, you will end up with:

<cats>
  <cat>
    ...
    <whiskers>
      <whisker>...
    </whiskers>
  </cat>
  <cat>
  ...
</cats>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ONE and assignement
Next Topic: Folder for configuration file
Goto Forum:
  


Current Time: Sun May 11 02:02:10 CEST 2025

Total time taken to generate the page: 0.02545 seconds