{"id":19899024,"url":"https://github.com/arkency/inspect_xml","last_synced_at":"2026-05-15T12:05:39.705Z","repository":{"id":147320526,"uuid":"126029569","full_name":"arkency/inspect_xml","owner":"arkency","description":"Discover the schema and unique values of an XML file you need to parse #ruby","archived":false,"fork":false,"pushed_at":"2018-03-20T15:30:00.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-05T21:39:17.857Z","etag":null,"topics":["nokogiri","ruby","xml","xml-parsing"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arkency.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-20T14:22:54.000Z","updated_at":"2018-03-22T13:41:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3d9c33e-d291-4de3-be1e-d55a4f788f79","html_url":"https://github.com/arkency/inspect_xml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arkency/inspect_xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkency%2Finspect_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkency%2Finspect_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkency%2Finspect_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkency%2Finspect_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arkency","download_url":"https://codeload.github.com/arkency/inspect_xml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkency%2Finspect_xml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032934,"owners_count":25034067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nokogiri","ruby","xml","xml-parsing"],"created_at":"2024-11-12T20:06:56.213Z","updated_at":"2026-05-15T12:05:34.652Z","avatar_url":"https://github.com/arkency.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inspect_xml\n\nDiscover the schema and unique values of an XML file you need to parse in #ruby.\nThe script outputs full XPaths, their occurance count, and unique values (if there is less than 100 of them) \n\n## Run\n\n```\ngem install nokogiri\nruby inspect.rb parse_me.xml\n```\n\n## Output Example:\n\n```\nONIXMessage - 1\nONIXMessage/Header - 1\nONIXMessage/Header/MessageNote - 1\n  Metadata Extract - 1\nONIXMessage/Header/Sender - 1\nONIXMessage/Header/Sender/ContactName - 1\n  CoreSource - 1\nONIXMessage/Header/Sender/SenderName - 1\n  Foo Content Group - 1\nONIXMessage/Header/SentDateTime - 1\n  20171019T170325Z - 1\nONIXMessage/Product - 57257\nONIXMessage/Product/Barcode - 26535\nONIXMessage/Product/Barcode/BarcodeType - 26535\n  02 - 26535\nONIXMessage/Product/Barcode/PositionOnProduct - 26535\n  09 - 26535\nONIXMessage/Product/CollateralDetail - 57257\nONIXMessage/Product/CollateralDetail/Prize - 5956\nONIXMessage/Product/CollateralDetail/Prize/PrizeCode - 2176\n  01 - 2153\n  03 - 18\n  07 - 5\nONIXMessage/Product/CollateralDetail/Prize/PrizeJury - 3761\nONIXMessage/Product/CollateralDetail/Prize/PrizeName - 5956\nONIXMessage/Product/CollateralDetail/Prize/PrizeYear - 1716\n  2011 - 313\n  2015 - 313\n  2012 - 309\n  2014 - 229\n  2013 - 181\n  2010 - 170\n  2016 - 168\n  2017 - 25\n  2005 - 5\n  2009 - 3\nONIXMessage/Product/CollateralDetail/TextContent - 54371\nONIXMessage/Product/CollateralDetail/TextContent/ContentAudience - 54371\n  00 - 54367\n  03 - 4\nONIXMessage/Product/CollateralDetail/TextContent/SourceTitle - 28694\n  Journal - 24172\n  Website - 1785\n  Magazine - 1340\n  Newspaper - 615\n  Other Print - 595\n  Blog - 130\n  Teacher - 57\nONIXMessage/Product/CollateralDetail/TextContent/Text - 54371\nONIXMessage/Product/CollateralDetail/TextContent/TextSourceCorporate - 28952\nONIXMessage/Product/CollateralDetail/TextContent/TextType - 54371\n  06 - 28952\n  03 - 25419\nONIXMessage/Product/DescriptiveDetail - 57257\nONIXMessage/Product/DescriptiveDetail/Audience - 159645\nONIXMessage/Product/DescriptiveDetail/Audience/AudienceCodeType - 159645\n  02 - 82858\n  01 - 54387\n  19 - 22400\nONIXMessage/Product/DescriptiveDetail/Audience/AudienceCodeTypeName - 104983\n  National Council for Social Studies - 29527\n  Lexile - 22125\n  ATOS - 17311\n  Fountas and Pinnell Guided Reading Level - 15397\n  Benchmarks for Science Literacy (BSLStandards) - 10729\n  Reading Recovery Level - 9433\n  NCSS Standards - 193\n  Guided Reading Level - 148\n  BSLStandards - 52\n  NSES Standards - 52\n  Reading Recovery - 16\nONIXMessage/Product/DescriptiveDetail/Audience/AudienceCodeValue - 159645\nONIXMessage/Product/DescriptiveDetail/AudienceCode - 54387\n  02 - 54110\n  04 - 277\n```\n\n## About\n\n\u003cimg src=\"https://arkency.com/images/arkency.png\" alt=\"Arkency\" width=\"60px\" align=\"left\" /\u003e\n\nThis repository is funded and maintained by [Arkency](https://arkency.com). Check out our other [open-source projects](https://github.com/arkency), especially [Rails Event Store](https://github.com/RailsEventStore).\n\nConsider [hiring us](https://arkency.com/hire-us) and make sure to check out [our blog](https://blog.arkency.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkency%2Finspect_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkency%2Finspect_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkency%2Finspect_xml/lists"}