Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
339
XML and Hierarchical Display Bug?
posted

Hello,

I'm having problems with displaying hierarchical data using an XML document as a datasource - I can't get child nodes to display correctly after the first child from the 2nd level onwards. By this I mean :

<DocElement>
  <Customer>
  <Name>John Smith</Name>
  <Address>32 High St</Address>
  <Email>john.smith@gmail.com</Email>   
    <AddressHistory>
      <Addresses>
        <Address>1 Colombo St</Address>
        <Town>Townsville</Town>
        <Country>Australia</Country>
      </Addresses>
      <Addresses>
        <Address>1 Bat St</Address>
        <Town>Gotham City</Town>
       <Country>USA</Country>
       <LengthAtAddressDetails>
          <LengthAtAddressDetail>
            <Years>10</Years>
          </LengthAtAddressDetail>
        </LengthAtAddressDetails>

      </Addresses>
      <Addresses>
        <Address>5 Kiwi Lane</Address>
        <Town>Queenstown</Town>
        <Country>New Zealand</Country>
      </Addresses>
   </AddressHistory>
 </Customer>
</DocElement>

The node LengthAtAddressDetails does not display. BUT if I move the entire node up a level, it does display (see attached). This only appears to be an issue from the 2nd level onwards, from the 1st level of nodes I can't replicate this, it works as expected.

Am I doing something obviously wrong?

Thanks,
Jamie

Parents
No Data
Reply
  • 6867
    Verified Answer
    posted

    Hi,

    I'm not sure why the grid does this, but if the first XmlElement does not have children, then it will not display children for any of the other XmlElements it displays.  I think you should somehow ensure that the first element has the "schema" that you want.  If you don't like this behavior, please feel free to submit a feature request.

    Josh

Children