Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

root path question #157

Closed
matianhe3 opened this issue Mar 16, 2021 · 0 comments
Closed

root path question #157

matianhe3 opened this issue Mar 16, 2021 · 0 comments

Comments

@matianhe3
Copy link

    file = readxml("f0dc19ff.xml")
    nums = findall("//TT", file)
    for num in nums
        counter = findall("//contour", num))
        println(length(counter))
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>

i think it will print 1 , i want get every => num.
but it gives me 6, findall seems not in num , it still search in file?
i must use counter = findall("//contour", parsexml(string(num))) get the result that i need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant