Managed Hosting



Project Home Blog Known Issues External Project Link Contact Project

XmlToStruct Issue: attributes bug

Name: attributes bug
ID: 1
Project: XmlToStruct
Type: Bug
Area: Code
Severity: High
Status: Open
Related URL:
Creator: Speq
Created: 06/24/08 3:29 PM
Updated: 12/05/08 2:01 PM
Description: there's a bug in the code that prevents attributes collection under certain circumstances.

in order to fix it, you have to move the [cfif] block [lines 61 to 72] outside of the [cfelse] block [i.e. after line 93]
History: Created by speqy (Speq) : 06/24/08 3:29 PM

Comment by anujgakhar (Anuj Gakhar) : 06/27/08 6:59 AM
Hi Speqy, thanks for taking the time to point it out and sorry for the delay in getting back to you. Do you have a updated file that I can use to update the project ?


Comment by mgw4jc (Matt Williams) : 12/05/08 2:01 PM
I'm not sure what the original issue was here, but I did notice some attributes in my xml file that do not get carried over to the struct. It seemed to happen mostly if there were multiple children with attributes. See this xml: http://ns.hr-xml.org/2_4/HR-XML-2_4/Screening/US/BackgroundCheck.xml

And look for governmentid attributes. The element in the second array has one set of attributes when there are attributes for both xml elements.

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