Skip to content

Daagr/QDXML.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QDXML

Build Status

Quick and Dirty XML parser. And by quick I mean quickly written; doesn't support many XML features like character references ε¢.

Usage

using QDXML
x = XML(xml_file) # or
x = XML("<a>b</a>")

x["a"] # first element named "a"
x["a", :] # Array of all elements "a"

for elem in x # iterate through all elements
    elem.elems # Array of all child-elements and text
    elem.attrs # Dict of all attributes
    elem.name
end

If XML thinks document is a file name, you can use QDXML.parse_string(s).

Alternatives

I haven't done any benchmarks so QDXML is probably really slow. The alternatives also have better support for some XML features.

  • Able to create XML trees
  • Not native Julia (wrapper of libxml2) and it shows (free)
  • Really nice XPath queries
  • Wrapper for libexpat
  • Hideously dependant on the environment (Python version, bs4 and xml library)
  • Really nice interface that I try to mimic

About

Quick and Dirty XML library for Julia.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages