8000 How to find the nodes within a file · Issue #265 · jindw/xmldom · GitHub
[go: up one dir, main page]

Skip to content

How to find the nodes within a file #265

Open

Description

@arthur798

So I have a code like that


    var text = await execPromise('pdftohtml -i -xml -stdout /tmp/test-sync');

    const parser = new DOMParser();
    let xmlDoc = parser.parseFromString(text,"text/xml");
    
    console.log(xmlDoc.getElementsByTagName(4))

now pdftohtml gives a nice xml with position of each line and the content of it but how do I access it within the dom parser?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0