דוגמה ...
שדות מתוך xml שאני מוציא את הנתונים .... <ThirdPartyProductInfo> - <ThirdPartyProductDetails> <OfferingType>Used</OfferingType> <SellerId>A16MZ6IWWRWUP5</SellerId> <SellerNickname /> <ExchangeId>Y11M3385853M6777809</ExchangeId> <OfferingPrice>$169.99</OfferingPrice> <Condition>new</Condition> <ExchangeAvailability>Usually ships in 4-5 business days</ExchangeAvailability> <SellerCountry>NA</SellerCountry> <SellerState>NA</SellerState> <SellerRating>NA</SellerRating> </ThirdPartyProductDetails> - <ThirdPartyProductDetails> <OfferingType>Refurbished</OfferingType> <SellerId>A2STGJCUE7KMXA</SellerId> <SellerNickname>aroundtheclock</SellerNickname> <ExchangeId>Y04Y6186870Y5615448</ExchangeId> <OfferingPrice>$99.00</OfferingPrice> <Condition>refurbished</Condition> <ConditionType>90 Days Manufacturer Warranty. 100% Satisfaction Guaranteed. Will assist you with exchnage and make sure you get yoru replacement in case of malfunction within 90 Days of purchase.</ConditionType> <ExchangeAvailability>Usually ships in 1-2 business days</ExchangeAvailability> <SellerCountry>United States</SellerCountry> <SellerState>CA</SellerState> <SellerRating>0.0</SellerRating> </ThirdPartyProductDetails> </ThirdPartyProductInfo> ככה אני מנסה להוציא את השדה של SellerId IF XmlTr1.nodeType=Element AND Xmltr1.Name="SellerId" Xmltr1.Read() sellerID = XmlTr1.Value END IF
הבעיה שאני מקבל רק את ה SellerID , איך אפשר לבנות תנאי שיעשה סריקה ויתן לי רק את הSellerID הראשון. תודה