Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

import xml with nodes in datagridview.

$
0
0

I hace an XML document generated by an opensource web application.

I need to import the XMl into a datagridview but the XML has a very strange construction...

It has a lot of nested nodes and some with the same name as the parent nodes...

How can I insert this into a datagridview???

<?xml version="1.0" encoding="UTF-8"?><gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" gco:isoType="gmd:MD_Metadata"><gmd:fileIdentifier><gco:CharacterString>00bd127a-2792-4456-bcab-a0d7fce77f9d</gco:CharacterString></gmd:fileIdentifier><gmd:language><gmd:LanguageCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" /></gmd:language><gmd:dateStamp><gco:DateTime>2014-01-28T11:10:57</gco:DateTime></gmd:dateStamp><gmd:identificationInfo><gmd:MD_DataIdentification><gmd:citation><gmd:CI_Citation><gmd:title><gco:CharacterString></gco:CharacterString></gmd:title><gmd:alternateTitle gco:nilReason="missing"><gco:CharacterString /></gmd:alternateTitle><gmd:identifier><gmd:RS_Identifier><gmd:code gco:nilReason="missing"><gco:CharacterString /></gmd:code></gmd:RS_Identifier></gmd:identifier></gmd:CI_Citation></gmd:citation><gmd:abstract gco:nilReason="missing"><gco:CharacterString /></gmd:abstract><gmd:descriptiveKeywords /></gmd:MD_DataIdentification></gmd:identificationInfo><gmd:metadataExtensionInfo><gmd:MD_MetadataExtensionInformation><dancers:DNC_additionalInfo xmlns:dancers="http://dancers.org"><dancers:geographicLocation /><dancers:financingFundingType><dancers:DNC_financingFundingType><dancers:financingFundingType><dancers:DNC_financingFundingTypeCode>fftypeNationalRD</dancers:DNC_financingFundingTypeCode></dancers:financingFundingType><dancers:financingFundingTypeOther gco:nilReason="missing"><gco:CharacterString /></dancers:financingFundingTypeOther></dancers:DNC_financingFundingType></dancers:financingFundingType><dancers:programType><dancers:DNC_programType><dancers:programType><dancers:DNC_programTypeCode><dancers:DNC_programTypeCode>programmeTypeEnvironmentalMonitoring</dancers:DNC_programTypeCode></dancers:DNC_programTypeCode></dancers:programType><dancers:programTypeOther gco:nilReason="missing"><gco:CharacterString /></dancers:programTypeOther></dancers:DNC_programType></dancers:programType><dancers:thematicProjectCode><dancers:DNC_thematicProjectCode>areaProjectLifeSciences</dancers:DNC_thematicProjectCode></dancers:thematicProjectCode><dancers:projectDirector><gco:CharacterString></gco:CharacterString></dancers:projectDirector><dancers:projectKeyPersons gco:nilReason="missing"><gco:CharacterString /></dancers:projectKeyPersons><dancers:projectBudget><gco:CharacterString></gco:CharacterString></dancers:projectBudget><dancers:projectBudgetCurrency><gco:CharacterString>RSD</gco:CharacterString></dancers:projectBudgetCurrency><dancers:numberOfPartnersInTheConsortium><gco:Integer>2</gco:Integer></dancers:numberOfPartnersInTheConsortium><dancers:coordinatorProject><dancers:DNC_coordinatorProject><dancers:organisationname><gco:CharacterString></gco:CharacterString></dancers:organisationname><dancers:countryname><gco:CharacterString></gco:CharacterString></dancers:countryname></dancers:DNC_coordinatorProject></dancers:coordinatorProject><dancers:languageUsedWithinTheProject gco:nilReason="missing"><gco:CharacterString /></dancers:languageUsedWithinTheProject><dancers:statusOfProject><dancers:DNC_statusOfProject>statusOfProjectCompleted</dancers:DNC_statusOfProject></dancers:statusOfProject><dancers:startingDateOfTheProject><gco:Date>2005-01-15</gco:Date></dancers:startingDateOfTheProject><dancers:endingDateOfTheProject><gco:Date>2005-12-15</gco:Date></dancers:endingDateOfTheProject><dancers:webpageOfTheProject gco:nilReason="missing"><gco:CharacterString /></dancers:webpageOfTheProject><dancers:anyRelatedDatasetsOrSources gco:nilReason="missing"><gco:CharacterString /></dancers:anyRelatedDatasetsOrSources><dancers:constraintsOfTheData><dancers:DNC_constraintsOfTheData /></dancers:constraintsOfTheData><dancers:coreCategory><dancers:DNC_coreCategory><dancers:DNC_coreCategory>coreCategoryScientificagenda</dancers:DNC_coreCategory></dancers:DNC_coreCategory></dancers:coreCategory><dancers:numberOfResearchPapersISI><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersISI><dancers:numberOfResearchPapersIDB><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersIDB><dancers:numberOfResearchPapersNRJ><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersNRJ><dancers:numberOfPatentsEUUSA><gco:Integer>0</gco:Integer></dancers:numberOfPatentsEUUSA><dancers:numberOfPatentsNational><gco:Integer>0</gco:Integer></dancers:numberOfPatentsNational><dancers:numberOfIndustryProducts><gco:Integer>0</gco:Integer></dancers:numberOfIndustryProducts><dancers:numberOfMaps><gco:Integer>0</gco:Integer></dancers:numberOfMaps><dancers:typeOfMaps /><dancers:numberOfResearchInfrastructures><gco:Integer>0</gco:Integer></dancers:numberOfResearchInfrastructures><dancers:numberOfDatabases><gco:Integer>0</gco:Integer></dancers:numberOfDatabases><dancers:numberOfScientificReports><gco:Integer>0</gco:Integer></dancers:numberOfScientificReports><dancers:numberOfPolicyBriefs><gco:Integer>0</gco:Integer></dancers:numberOfPolicyBriefs><dancers:numberOfTechnologies><gco:Integer>0</gco:Integer></dancers:numberOfTechnologies><dancers:numberOfPhDStudentsTrained><gco:Integer>0</gco:Integer></dancers:numberOfPhDStudentsTrained><dancers:numberOfMScStudentsTrained><gco:Integer>0</gco:Integer></dancers:numberOfMScStudentsTrained><dancers:numberOfStakeholdersInvolved><gco:Integer>0</gco:Integer></dancers:numberOfStakeholdersInvolved><dancers:typeOfStakeholder><dancers:DNC_typeOfStakeholder><dancers:typeOfStakeholder><dancers:DNC_typeOfStakeholderCode /></dancers:typeOfStakeholder></dancers:DNC_typeOfStakeholder></dancers:typeOfStakeholder><dancers:nameOfIndividualSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:nameOfIndividualSubmittingInformation><dancers:nameOfOrganisationSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:nameOfOrganisationSubmittingInformation><dancers:emailAddressOfIndividualSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:emailAddressOfIndividualSubmittingInformation><dancers:dateTheInformationIsSubmitted><gco:Date>2013-12-23</gco:Date></dancers:dateTheInformationIsSubmitted></dancers:DNC_additionalInfo></gmd:MD_MetadataExtensionInformation></gmd:metadataExtensionInfo><gmd:distributionInfo><gmd:MD_Distribution><gmd:transferOptions><gmd:MD_DigitalTransferOptions><gmd:onLine><gmd:CI_OnlineResource><gmd:linkage><gmd:URL></gmd:URL></gmd:linkage><gmd:protocol><gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString></gmd:protocol><gmd:name><gmx:MimeFileType xmlns:gmx="http://www.isotc211.org/2005/gmx" type="application/msword">NATIONAL_RD_1.doc</gmx:MimeFileType></gmd:name><gmd:description><gco:CharacterString /></gmd:description></gmd:CI_OnlineResource></gmd:onLine></gmd:MD_DigitalTransferOptions></gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo></gmd:MD_Metadata><gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" gco:isoType="gmd:MD_Metadata"><gmd:fileIdentifier><gco:CharacterString>00bd127a-2792-4456-bcab-a0d7fce77f9d</gco:CharacterString></gmd:fileIdentifier><gmd:language><gmd:LanguageCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" /></gmd:language><gmd:dateStamp><gco:DateTime>2014-01-28T11:10:57</gco:DateTime></gmd:dateStamp><gmd:identificationInfo><gmd:MD_DataIdentification><gmd:citation><gmd:CI_Citation><gmd:title><gco:CharacterString></gco:CharacterString></gmd:title><gmd:alternateTitle gco:nilReason="missing"><gco:CharacterString /></gmd:alternateTitle><gmd:identifier><gmd:RS_Identifier><gmd:code gco:nilReason="missing"><gco:CharacterString /></gmd:code></gmd:RS_Identifier></gmd:identifier></gmd:CI_Citation></gmd:citation><gmd:abstract gco:nilReason="missing"><gco:CharacterString /></gmd:abstract><gmd:descriptiveKeywords /></gmd:MD_DataIdentification></gmd:identificationInfo><gmd:metadataExtensionInfo><gmd:MD_MetadataExtensionInformation><dancers:DNC_additionalInfo xmlns:dancers="http://dancers.org"><dancers:geographicLocation /><dancers:financingFundingType><dancers:DNC_financingFundingType><dancers:financingFundingType><dancers:DNC_financingFundingTypeCode>fftypeNationalRD</dancers:DNC_financingFundingTypeCode></dancers:financingFundingType><dancers:financingFundingTypeOther gco:nilReason="missing"><gco:CharacterString /></dancers:financingFundingTypeOther></dancers:DNC_financingFundingType></dancers:financingFundingType><dancers:programType><dancers:DNC_programType><dancers:programType><dancers:DNC_programTypeCode><dancers:DNC_programTypeCode>programmeTypeEnvironmentalMonitoring</dancers:DNC_programTypeCode></dancers:DNC_programTypeCode></dancers:programType><dancers:programTypeOther gco:nilReason="missing"><gco:CharacterString /></dancers:programTypeOther></dancers:DNC_programType></dancers:programType><dancers:thematicProjectCode><dancers:DNC_thematicProjectCode>areaProjectLifeSciences</dancers:DNC_thematicProjectCode></dancers:thematicProjectCode><dancers:projectDirector><gco:CharacterString></gco:CharacterString></dancers:projectDirector><dancers:projectKeyPersons gco:nilReason="missing"><gco:CharacterString /></dancers:projectKeyPersons><dancers:projectBudget><gco:CharacterString></gco:CharacterString></dancers:projectBudget><dancers:projectBudgetCurrency><gco:CharacterString>RSD</gco:CharacterString></dancers:projectBudgetCurrency><dancers:numberOfPartnersInTheConsortium><gco:Integer>2</gco:Integer></dancers:numberOfPartnersInTheConsortium><dancers:coordinatorProject><dancers:DNC_coordinatorProject><dancers:organisationname><gco:CharacterString></gco:CharacterString></dancers:organisationname><dancers:countryname><gco:CharacterString></gco:CharacterString></dancers:countryname></dancers:DNC_coordinatorProject></dancers:coordinatorProject><dancers:languageUsedWithinTheProject gco:nilReason="missing"><gco:CharacterString /></dancers:languageUsedWithinTheProject><dancers:statusOfProject><dancers:DNC_statusOfProject>statusOfProjectCompleted</dancers:DNC_statusOfProject></dancers:statusOfProject><dancers:startingDateOfTheProject><gco:Date>2005-01-15</gco:Date></dancers:startingDateOfTheProject><dancers:endingDateOfTheProject><gco:Date>2005-12-15</gco:Date></dancers:endingDateOfTheProject><dancers:webpageOfTheProject gco:nilReason="missing"><gco:CharacterString /></dancers:webpageOfTheProject><dancers:anyRelatedDatasetsOrSources gco:nilReason="missing"><gco:CharacterString /></dancers:anyRelatedDatasetsOrSources><dancers:constraintsOfTheData><dancers:DNC_constraintsOfTheData /></dancers:constraintsOfTheData><dancers:coreCategory><dancers:DNC_coreCategory><dancers:DNC_coreCategory>coreCategoryScientificagenda</dancers:DNC_coreCategory></dancers:DNC_coreCategory></dancers:coreCategory><dancers:numberOfResearchPapersISI><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersISI><dancers:numberOfResearchPapersIDB><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersIDB><dancers:numberOfResearchPapersNRJ><gco:Integer>0</gco:Integer></dancers:numberOfResearchPapersNRJ><dancers:numberOfPatentsEUUSA><gco:Integer>0</gco:Integer></dancers:numberOfPatentsEUUSA><dancers:numberOfPatentsNational><gco:Integer>0</gco:Integer></dancers:numberOfPatentsNational><dancers:numberOfIndustryProducts><gco:Integer>0</gco:Integer></dancers:numberOfIndustryProducts><dancers:numberOfMaps><gco:Integer>0</gco:Integer></dancers:numberOfMaps><dancers:typeOfMaps /><dancers:numberOfResearchInfrastructures><gco:Integer>0</gco:Integer></dancers:numberOfResearchInfrastructures><dancers:numberOfDatabases><gco:Integer>0</gco:Integer></dancers:numberOfDatabases><dancers:numberOfScientificReports><gco:Integer>0</gco:Integer></dancers:numberOfScientificReports><dancers:numberOfPolicyBriefs><gco:Integer>0</gco:Integer></dancers:numberOfPolicyBriefs><dancers:numberOfTechnologies><gco:Integer>0</gco:Integer></dancers:numberOfTechnologies><dancers:numberOfPhDStudentsTrained><gco:Integer>0</gco:Integer></dancers:numberOfPhDStudentsTrained><dancers:numberOfMScStudentsTrained><gco:Integer>0</gco:Integer></dancers:numberOfMScStudentsTrained><dancers:numberOfStakeholdersInvolved><gco:Integer>0</gco:Integer></dancers:numberOfStakeholdersInvolved><dancers:typeOfStakeholder><dancers:DNC_typeOfStakeholder><dancers:typeOfStakeholder><dancers:DNC_typeOfStakeholderCode /></dancers:typeOfStakeholder></dancers:DNC_typeOfStakeholder></dancers:typeOfStakeholder><dancers:nameOfIndividualSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:nameOfIndividualSubmittingInformation><dancers:nameOfOrganisationSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:nameOfOrganisationSubmittingInformation><dancers:emailAddressOfIndividualSubmittingInformation><gco:CharacterString></gco:CharacterString></dancers:emailAddressOfIndividualSubmittingInformation><dancers:dateTheInformationIsSubmitted><gco:Date>2013-12-23</gco:Date></dancers:dateTheInformationIsSubmitted></dancers:DNC_additionalInfo></gmd:MD_MetadataExtensionInformation></gmd:metadataExtensionInfo><gmd:distributionInfo><gmd:MD_Distribution><gmd:transferOptions><gmd:MD_DigitalTransferOptions><gmd:onLine><gmd:CI_OnlineResource><gmd:linkage><gmd:URL></gmd:URL></gmd:linkage><gmd:protocol><gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString></gmd:protocol><gmd:name><gmx:MimeFileType xmlns:gmx="http://www.isotc211.org/2005/gmx" type="application/msword">NATIONAL_RD_1.doc</gmx:MimeFileType></gmd:name><gmd:description><gco:CharacterString /></gmd:description></gmd:CI_OnlineResource></gmd:onLine></gmd:MD_DigitalTransferOptions></gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo></gmd:MD_Metadata>


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>