<div> - tags innerhalb von <div> mit importXML Xpath-Abfrage in der Google-Tabelle

Ich bin mit Xpath in Google docs, um den text innerhalb <div>.
Ich möchte speichern Sie den text innerhalb <div id="job_description"> in einer Zelle von Google doc spreadsheet, aber es zeigt jeden <div> im separaten Zelle.

<div id="job_description">
    <div>
        <strong>
            Basic Purpose:
        </strong>
        <br></br>
    </div>
    <div>
        Work closely with developers, product owners and Q…
        <br></br>
    </div>
    <div>
        The Test Analyst is accountable for the developmen…
        <br></br>
    </div>
    <div>
        <strong>
            Duties and Responsibilities:
        </strong>
    </div>
    <ul>
        <li></li>
        <li></li>
    </ul>
    <div>
        <strong>
            Requirements:
        </strong>
        <br></br>
    </div>
    <ul>
        <li></li>
        <li></li>
    </ul>
</div>

Bild:
http://i.stack.imgur.com/K0mAY.png

- und dies ist der code, den ich schrieb:

=IMPORTXML(E4,"//div[@id='job_description']")

Können Sie mir helfen, setzen Sie den gesamten text (einschließlich <div> <ul> ...) innerhalb der <div id="job_description"> in nur einer Zelle ?

  • Und was ist in der Zelle E4? Eine URL zu einer Seite? Möchten Sie nur den text-content?
  • Ja, E4 URL . Ich möchte, dass alle Texte, die innerhalb von div-und ul werden in einer Zelle . Wie ich zeigen im Bild, derzeit jedes div ist in separate Zelle ein.
InformationsquelleAutor Zahra Hnn | 2015-02-01
Schreibe einen Kommentar