combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / XmlDataProvider Class
Members


In This Topic
    XmlDataProvider Class
    In This Topic
    This data provider can be used to access data from XML files. It will not use schema information in XML/XSD files and does not handle constraints. The main purpose of this class is to provide a fast and easy access to nested XML data. This class is serializable.
    Object Model
    XmlDataProvider Class
    Syntax
    'Declaration
     
    
    Public NotInheritable Class XmlDataProvider 
       Implements ICanHandleUsedIdentifiers, IDataProvider 
    public sealed class XmlDataProvider : ICanHandleUsedIdentifiers, IDataProvider  
    public ref class XmlDataProvider sealed : public ICanHandleUsedIdentifiers, IDataProvider  
    Remarks

    There are a number of ways to influence the data type parsing behavior of the provider. By default, all nodes are typed by their content, i.e. if a node only contains numbers, the resulting field type will be LlFieldType.Numeric. To override this behavior, you may use the PreParseXPathNavigator Event of the provider. Another way is using a specialized attribute as shown in the example XML below.

    Sample XML using the lltype attribute
    Copy Code
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data>
      <Companies>
        <Company>combit GmbH</Company>
        <Contacts>
          <Name>Wild</Name>
          <Firstname>John</Firstname>
          <MainContact lltype="Boolean">1</MainContact>
        </Contacts>
        <Contacts>
          <Name>Cash</Name>
          <Firstname>William</Firstname>
          <MatchCode>Cash</MatchCode>
          <MainContact lltype="Boolean">0</MainContact>
        </Contacts>
      </Companies>
    </Data>
    
    Inheritance Hierarchy

    System.Object
       combit.Reporting.DataProviders.XmlDataProvider

    Requirements

    See Also