I'm using SSIS to copy data from a XML file.I have a xsd but only read a part of my xml, for example doesn't read the three first elements Date, Name and Phone number, only read the elements contained in info elements. Someone can help me?
This is my XSD
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid Studio 2019 (https://www.liquid-technologies.com) -->
<xs:schema xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:s0="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:_xdns0="http://schemas.microsoft.com/office/infopath/2003/changeTracking" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields" xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes"
xmlns:tns="http://IBKC.int/" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="C:\Users\alfre\OneDrive\Desktop\MaintanceFileDefinition1.xsd" namespace="http://www.w3.org/XML/1998/namespace" />
<xs:element name="gpDDAMaintenance">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="Date" type="xs:date" />
<xs:element minOccurs="0" name="Name" type="xs:string" />
<xs:element minOccurs="0" name="PhoneNumber" type="xs:string" />
<xs:element minOccurs="0" name="Info">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="FormStatus" type="xs:string" />
<xs:element minOccurs="0" name="FormName" type="xs:string" />
<xs:element minOccurs="0" name="FormEmailAddress" type="xs:string" />
<xs:element minOccurs="0" name="EmailAddressOverride" />
<xs:element minOccurs="0" name="DepositWorkflow" type="xs:boolean" />
<xs:element minOccurs="0" name="RateWorkflow" type="xs:boolean" />
<xs:element minOccurs="0" name="HiddenPassword" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="xml:lang" use="optional" />
</xs:complexType>
</xs:element>
</xs:schema>
This is my XML
<xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:XXXXXXmyXSD-2012-06-21T16-04-39" solutionVersion="1.0.20.207" productVersion="16.0.0.0" PIVersion="1.0.0.0" href="aaaa.com?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?>
<?mso-infoPath-file-attachment-present?>
<my:gpDDAMaintenance xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:tns="http://IBKC.int/" xmlns:_xdns0="http://schemas.microsoft.com/office/infopath/2003/changeTracking"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields" xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields"
xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xml:lang="en-US">
<my:Date>2019-05-16</my:Date>
<my:Name>Jhon</my:Name>
<my:PhoneNumber>111-111-1111</my:PhoneNumber>
<my:gpInfo>
<my:FormStatus>Saved</my:FormStatus>
<my:FormName>AAA-157758106D-20190516131812</my:FormName>
<my:FormEmailAddress></my:FormEmailAddress>
<my:EmailAddressOverride></my:EmailAddressOverride>
<my:DepositWorkflow>true</my:DepositWorkflow>
<my:RateWorkflow>false</my:RateWorkflow>
<my:HiddenPassword>asd</my:HiddenPassword>
</my:gpInfo>
</my:gpDDAMaintenance>