Git Product home page Git Product logo

foxy's Issues

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

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

How to build, is there a wiki

Hello,

I included the lib/ in my Fortran Project, but all the third_party dependencies are missing.

Is there an easy way to kind of install it to my system, so I automatically get all third_party dependencies and do not have to manually include lib/ files in my CMakeLists.txt?

Emitter facility

Develop the emitter facility. Tag class must be improved.

  • expose xml_file%add_tag method;
  • add xml_file%del_tag method;
  • expose xml_tag class;
  • add create method (maybe an overloaded-by-name creator function);
    • support self closing tag;
  • add set methods:
    • for name;
    • for attributes;
    • for value;
  • add del methods:
    • for attributes;
    • fof value.

Take inspiraton by the great yattag.

desiderata API

Something similar to

type(xml_tag) :: a_tag
type(xml_file) :: a_file

a_tag = xml_tag('div') ! create `<div></div>`
! add/modify/delete attributes
call a_tag%set(attributes=[['id', 'photo'], ['num', '5']]) ! become `<div id="photo" num="5"></div>`
call a_tag%set(attribute=['num', '9']) ! become `<div id="photo" num="9"></div>`
call a_tag%set(attributes=[['src', 'bar.png'], ['num', '5']]) ! become `<div id="photo" num="5" src="bar.png"></div>`
call a_tag%del(attributes=['src', 'num']) ! become `<div id="photo"></div>`
! add/modify/delete value
call a_tag%set(value='lorem ipsum'//new_line('a')//'dolor sit amet')
! become
!<div id="photo">
!lorem ipsum
!dolor sit amet
!</div>
call a_tag%set(indent=3) ! indent value
! become
!<div id="photo">
!   lorem ipsum
!   dolor sit amet
!</div>
call a_tag%del_value ! become `<div id="photo"></div>`
! add to file
call a_file%add_tag(tag=a_tag)
call a_file%add_tag(tag=a_tag)
! delete from file
call a_file%del_tag(tag=a_tag) ! by tag handler
call a_file%del_tag(tag_name='div') ! by tag name

it's posible to hard code one XML file with FoXy?

I've seen that FoXy is ready to parse XML files, but now I need to create a new XML file from the code, is it possible?

If it is possible, Can someone post a small piece of code doing that?

Thanks!

File extension of foxy_xml_tag.F90

Why is the extension of "foxy_xml_tag.F90" capital?
An error was occurred on compiling VTKFortran with makefile.

I'm sorry if I'm not to the point.

GPL & MIT

I may be mistaken, but I’m pretty sure that since GPL is “copy left” you are violating the GPL license by also licensing it under the other more permissive licenses… I’m not an expert but it might be safer to just use MIT/BSD…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.