Skip to content

ksgerastenok/xmltojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XML to JSON converter.

Project in this repository converts XML to its corresponding representation similar to XMLSlurper in Groovy. With such converter it is quite easily to navigate in XML:

  • attributes could be accessed as "@ + attribute name"
  • nodes could be accessed as "node name" There are some special names:
  • #text - the text value of current node
  • #xmlns - the namespace of current node
  • #name - the local name of current node

Example is shown in corresponding Java or Python source.