Fortran-FOSS-Programmers / Fortran-FOSS-Programmers/FoXy

Accessing the contents of xml_tags depends on their position in the xml file.

Open
#7 4 comments 0 reactions 1 assignee Claimed by @szaghi View on GitHub
bug
Dominant language
Fortran
Stars
32
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I am trying to parse a simple xml file, based on the one you use in the "parse_file_simple" test case.

It seems to me that calling xml_file%parse gives satisfying results only when you're trying to acces the content of the first tag.

To demonstrate this, I have created 3 simple xml files (input_light_1/2/3.xml), that contain only 3 tags, "first", "second", "third", but placed in different orders.
I also wrote a minimal fortran code (parse_file_simple_LIGHT.f90), that takes a single xml file as an argument, and attends to access the content of tags "first", "second", and "third" and prints result.

You can find every file in the enclosed archive.

Any help would be greatly appreciated.
[FOXY_TEST_CASE.tar.gz](https://github.com/Fortran-FOSS-Programmers/FoXy/files/3627952/FOXY_TEST_CASE.tar.gz)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.