XPath获取除div之外的所有包含文本

XPath获取除div之外的所有包含文本,xpath,Xpath,我知道如何排除,但我不知道如何排除节点,而是获取包括文本在内的所有其他内容 因此,我在下面的HTML中使用XPath://div[@class=“web_description”]/*[not(div)]。我还需要标记外的文本。我该怎么做 <div class="web_description"> <div class="web_image"> <!--<img src="https://www.example.com/wp-

我知道如何排除,但我不知道如何排除节点,而是获取包括文本在内的所有其他内容

因此,我在下面的HTML中使用XPath:
//div[@class=“web_description”]/*[not(div)]
。我还需要
标记外的文本。我该怎么做

<div class="web_description">

        <div class="web_image">
        <!--<img src="https://www.example.com/wp-content/uploads/website/Bodhi_CKERN.jpg" width="150" height="150" border="10">-->
        <img src="https://www.example.com/wp-content/uploads/website/Bodhi_CKERN.jpg" width="150" height="150">

        </div> <h5>Description</h5> The target is red-hot, currently scaling and <b>BRANDED AMAZON 5-STAR RETAILER IN THE</b> <b>PET AND ACCESSORIES </b>segment. This brand is realizing <b>over 200%YOY growth for 2018</b>, and boasts multiple Amazon’s Choice SKUs in the pets category – all of this bound up in a massively attractive and low-overhead FBA platform with broad appeal to all the major verticals in the pet space means this is one of <b>the most viable pet retail acquisition opportunities of 2018.</b><br>
<br>
With a valuable trademarked brand and proprietary product manufacturing, this business is perfectly positioned in a trending, high-volume vertical, and uniquely ready for new ownership to step in and hit the ground running with a profitable growth platform built-in to an easy-to-run eCommerce &amp; Amazon foundation that has been laid, sealed, and gift wrapped for new ownership.<br>
<br>
The books and records on this great company are clean, making it a great opportunity for an SBA-backed loan. Qualified buyers can purchase this company for as little as <b>10% DOWN!</b><br>
<br>
Boasting multiple Amazon’s Choice SKUs, solid five-star feedback and multiple sales channels (Amazon, Chewy.com, eBay, DTC Website), this trademarked line of products has earned a reputation for top quality in its segment. Products are manufactured exclusively for the business, furnishing a line of SKUs catering primarily to the dog owner’s vertical (but spread out to reach other major pet verticals as well) all supplied primarily via FBA to allow for exceptionally low overhead and maximum flexibility in operations platform. This brand has wisely navigated its way into the natural and organic pet products space as well, smartly recognizing trends in the segment and beating competitors to the punch with a progressive offering.<br>
<br>
Competing in a vertical that not only typically sees high barriers to entry, but also fierce brand competition, this Company’s trade name is a recognized, known and a trusted brand in the industry, lending new ownership nearly endless opportunities for scale through international expansion, brick &amp; mortar retail, and Amazon Subscribe &amp; Save enhancement. Whether you choose to reap the benefits of international expansion or simply cash in on the sterling brand recognition of a company scaling like no other, the road to success for this business has been paved, mapped and made ready for absolutely any new owner.<br>
<br>
This eCommerce Retailer Represented by:<br>
<br>
Example.com<br>
Technology, Internet &amp; Amazon Business Brokers</div>

描述目标是RedHot,目前是宠物和配件领域的亚马逊五星级零售商。该品牌在2018年实现了超过200%的年增长率,并在宠物品类中拥有多个亚马逊精选SKU–所有这些都被捆绑在一个极具吸引力且低开销的FBA平台上,对宠物领域的所有主要垂直市场都具有广泛的吸引力,这意味着这是2018年最可行的宠物零售收购机会之一。

凭借一个有价值的商标品牌和专有产品制造,该业务在一个趋势化、大批量的垂直市场上处于完美的位置,并且为新的所有者提供了独特的准备,以便于新的所有者介入并通过一个内置于易于运行的电子商务和;Amazon基金会已经被铺设,密封,和礼品包装的新所有权。
这家伟大公司的账簿和记录都是清白的,这使它成为SBA支持的贷款的绝佳机会。合格的买家只需支付10%的折扣即可购买本公司

拥有多个亚马逊精选SKU、可靠的五星级反馈和多个销售渠道(亚马逊、Chewy.com、易趣、DTC网站),这一品牌产品线在其细分市场赢得了高品质的声誉。产品专为业务生产,提供一系列SKU,主要满足狗主人的垂直需求(但也扩展到其他主要宠物垂直需求),所有产品主要通过FBA提供,以实现极低的开销和操作平台的最大灵活性。该品牌也明智地进入了天然和有机宠物产品领域,巧妙地识别了该领域的趋势,并以渐进式的产品击败了竞争对手。

在垂直竞争中,不仅通常会看到高进入壁垒,而且还会看到激烈的品牌竞争,该公司的商标是业内公认的、知名的和值得信赖的品牌,通过国际扩张、brick&;mortar retail和Amazon Subscribe&;保存增强功能。无论您是选择从国际扩张中获益,还是仅仅从一家规模空前的公司获得的英镑品牌认可中获利,这项业务的成功之路已经为任何新的所有者铺平、绘制并做好了准备。

此电子商务零售商的代表为:

Example.com
科技,互联网及;亚马逊商业经纪人
也许你想要

//div[@class="web_description"]/node()[not(div)]

从你的描述很难确定

您的确切期望输出是什么?