Xpath设置的问题?xmlDoc.SelectSingleNode("//BusinessPartners")请问能定位到那一个节点?

gzsxy8013 2006-06-17 04:57:20
- <BOM>
- <BO>
- <AdmInfo>
<Object>oBusinessPartners</Object>
</AdmInfo>
- <QueryParams>
<CardCode />
</QueryParams>
+ <BusinessPartners>
- <row>
<CardCode />
<CardName />
<CardType />
<GroupCode />
<Address />
<ZipCode />
<MailAddress />
<MailZipCode />
<Phone1 />
<Phone2 />
<Fax />
<ContactPerson />
<Notes />
<PayTermsGrpCode />
<CreditLimit />
<MaxCommitment />
<DiscountPercent />
<VatLiable />
<FederalTaxID />
<DeductibleAtSource />
<DeductionPercent />
<DeductionValidUntil />
<PriceListNum />
<IntrestRatePercent />
<CommissionPercent />
<CommissionGroupCode />
<FreeText />
<SalesPersonCode />
<Currency />
<RateDiffAccount />
<Cellular />
<AvarageLate />
<City />
<County />
<Country />
<MailCity />
<MailCounty />
<MailCountry />
<EmailAddress />
<Picture />
<DefaultAccount />
<DefaultBranch />
<DefaultBankCode />
<AdditionalID />
<Pager />
<FatherCard />
<CardForeignName />
<FatherType />
<Properties1 />
<DeductionOffice />
<ExportCode />
<MinIntrest />
<ExemptNum />
<Priority />
<CreditCardCode />
<CreditCardNum />
<CreditCardExpiration />
<Valid />
<ValidFrom />
<ValidTo />
<Frozen />
<FrozenFrom />
<FrozenTo />
<ValidRemarks />
<FrozenRemarks />
<BillToState />
<VatGroupLatinAmerica />
<Indicator />
<ShippingType />
<DebitorAccount />
<ShipToDefault />
<Block />
<Password />
<VatGroup />
<IBAN />
<FormCode1099 />
<Box1099 />
<PeymentMethodCode />
<BackOrder />
<PartialDelivery />
<BlockDunning />
<BankCountry />
<CollectionAuthorization />
<DME />
<InstructionKey />
<SinglePayment />
<ISRBillerID />
<PaymentBlock />
<ReferenceDetails />
<HouseBank />
<OwnerIDNumber />
<PaymentBlockDescription />
<HouseBankCountry />
<HouseBankAccount />
<HouseBankBranch />
<ProjectCode />
<DeferredTax />
<MaxAmountOfExemption />
<SubjectToWithholdingTax />
<CertificateNumber />
<ExpirationDate />
<NationalInsuranceNum />
<AccrualCriteria />
<WTCode />
<Equalization />
<LinkedBusinessPartner />
<LastMultiReconciliationNum />
<BillToBuildingFloorRoom />
<ShipToBuildingFloorRoom />
<CustomerBillofExchangPres />
<CustomerBillofExchangDisc />
<DunningTerm />
<ChannelBP />
<DefaultTechnician />
<Territory />
<BilltoDefault />
<DownPaymentClearAct />
<Website />
</row>
</BusinessPartners>
- <BPAddresses>
- <row>
<AddressName />
<Street />
<Block />
<ZipCode />
<City />
<County />
<Country />
<State />
<FederalTaxID />
<TaxCode />
<BuildingFloorRoom />
<AddressType />
</row>
</BPAddresses>
</BO>
</BOM>
...全文
335 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzsxy8013 2006-06-17
  • 打赏
  • 举报
回复
什么叫成天问问题
你有什么了不起啊
我喜欢问问题
你可以不答阿
速马 2006-06-17
  • 打赏
  • 举报
回复
// Recursive descent; searches for the specified element at any depth. When this path operator appears at the start of the pattern, it indicates recursive descent from the root node.

http://msdn2.microsoft.com/en-us/ms256122.aspx

学东西要会看SDK,别成天问这种问题
还有那些回复了的人,你能对你的回复负责吗?
gzsxy8013 2006-06-17
  • 打赏
  • 举报
回复
会定位到oBusinessPartners 节点吗?

marvelstack 2006-06-17
  • 打赏
  • 举报
回复
选择第一个BusinessPartners元素节点。
xfary 2006-06-17
  • 打赏
  • 举报
回复
xmlDoc.SelectSingleNode("BusinessPartners")
gzsxy8013 2006-06-17
  • 打赏
  • 举报
回复
或者说我定位到BusinessPartners 怎么办?

里面有一个BusinessPartners 还有一个oBusinessPartners

???

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧