Bonjour à toutes et a tous,
J'ai besoin d'un pti coup de main avec ssis.
J'essaye d'importer un fichier XML dans une table. J'insère donc un outil DATAFLOW -> DATAFLOWSOURCES -> XML Source
Mon problème vient ensuite des données récupérés dans ce fichier, en fait depuis ma balise clé, je dois récupérer des infos dans différentes balises mais en sortie de l'objet visiblement je ne peux choisir qu'une section !
Savez vous comment récupérer seulement quelques informations ?
Exemple du fichier XML (en gras ce que je veux récupérer et en rouge les basises concernées). Apparemment je ne peux récup que les données de product ou de ratingReviews mais pas un mix des deux ....
Merci d'avance pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 <Product id="018Y0144E" removed="false"> <Source>toto</Source> <ExternalId>018Y0144E</ExternalId> <Name>Lexmark n°44XL Noire</Name> <Description>Lexmark Cartouche d'encre photo n°44XL haute capacité - 1 x Noire -</Description> <Brand>LEXMARK</Brand> <CategoryItems> <CategoryItem id="10706"> <ExternalId>10706</ExternalId> <CategoryId>282820</CategoryId> <CategoryName>Cartouches - Toners - Papiers</CategoryName> </CategoryItem> <CategoryItem id="107"> <ExternalId>107</ExternalId> <CategoryId>282805</CategoryId> <CategoryName>Informatique</CategoryName> </CategoryItem> </CategoryItems> <ProductPageUrl>myurl.com</ProductReviewsUrl> <ImageUrl>myurl.com/toto.jpg</ImageUrl> <ReviewStatistics> <AverageOverallRating>5.0</AverageOverallRating> <OverallRatingRange>5</OverallRatingRange> <TotalReviewCount>1</TotalReviewCount> <RatingsOnlyReviewCount>0</RatingsOnlyReviewCount> <RecommendedCount>0</RecommendedCount> <AverageRatingValues> <AverageRatingValue id="Value"> <AverageRating>5.0</AverageRating> <RatingDimension id="Value" displayType="NORMAL"> <ExternalId>Value</ExternalId> <RatingRange>5</RatingRange> <Label1>rapport qualité / prix</Label1> </RatingDimension> </AverageRatingValue> </AverageRatingValues> <RatingDistribution> <RatingDistributionItem> <RatingValue>5</RatingValue> <Count>1</Count> </RatingDistributionItem> </RatingDistribution> </ReviewStatistics> </Product>
Là je cale complètement depuis quelques jours ...
Partager