Skip to content

A basic interpreter for XML which returns the structure of the XML input as a tree.

License

Notifications You must be signed in to change notification settings

rumenmitov/xml_interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML Interpreter

A basic interpreter for XML which returns the structure of the XML input as a tree. The program supports:

  • Element name and their corresponding closing tags (alphabetical characters only)
  • Attributes (key-value pair, the “” are not supported)
  • Self-closing tags
  • Nesting

Example

<p>
  <img width=10 height=5 />
  <p>
    <img />
  </p>
</p>

Testing

You can find the unit tests in the src/tests.rs file.

About

A basic interpreter for XML which returns the structure of the XML input as a tree.

Resources

License

Stars

Watchers

Forks

Languages