Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

XmlToStruct
Project Home Blog Known Issues External Project Link Contact Project

XmlToStruct Issue: XML Elements - End of branch

Name: XML Elements - End of branch
ID: 3
Project: XmlToStruct
Type: Bug
Area: Code
Severity: Normal
Status: Open
Related URL:
Creator: Karl Snyder
Created: 10/27/08 2:30 PM
Updated: 10/27/08 2:49 PM
Description: This function doesn't work well when you have XML with multiple elements of the same name. To fix the code the element that is built must be built before placing into astr[n]. This is because the value astr[n] could be one of string, struct or array/struct based on the existence of text, attributes, children.

Coincidently the xml-to-json jQuery addons makes the same mistakes when converting XML to JSON.
History: Created by karlsnyder (Karl Snyder) : 10/27/08 2:30 PM

Comment by karlsnyder (Karl Snyder) : 10/27/08 2:49 PM
I forgot to add this... overall a very smart function.

To add a comment to this bug, please login using the link above.