Skip to content

jkowskib/weaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weaver

Simple XML parsing library for Java

import jkowski.weaver.Tag;
import jkowski.weaver.Document;

public class ParserTest {
    public static void main(String[] args) {
        String exampleXML = """
                <note>
                  <to>Tove</to>
                  <from>Jani</from>
                  <heading>Reminder</heading>
                  <body>Don't forget me this weekend!</body>
                </note>
                """;
        
        // "note" is our root node and will be returned by the parser
        Tag xml = Document.parse(exampleXML);
        System.out.println(
                xml.getTag("to").content()
        );
    }
}

About

Simple XML parsing library for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages