
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> |
System.Object
combit.Reporting.DataProviders.XmlDataProvider