GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bhoogter/xml-file: An easy XML File wrapper class for direct queries, including sets on non-existent nodes

BranchesTags
Open more actions menu

Latest commit

 

History

498 Commits
498 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
buildPhar.php
buildPhar.php
 
 
release.sh
release.sh
 
 
test
test
 
 

Repository files navigation

XMLFile (class)

A mid-level library class for simplifying XML access (read/write). Useful for XML-based config, setting/fetching settings, modifying contents, including creating new entries.

Benefits

  1. Returning empty string or passed default on no contents.
  2. Create a new node/attribute regardless of whether parent nodes exist.
  3. Perform most standard operations without creating a new XML query object.
  4. Can automatically TIDY output on save, in a variety of pre-defined configurations (XML, XHTML)--or pass your own.

Additions

  • Load/save JSON strings/files. Perform XPATH just like on XML (because it is internally converted to XML on load). Save JSON <-> XML.
  • Tidy (both static and local) for both XML (if HTML Tidy is enabled, which it usually is) and JSON (via json_encode).
  • Merge multiple sources. Pass it a glob, array, or wildcard path, along with scan directives to combine multiple sources into a single query-able XML.

Credits

Benjamin Hoogterp
http://www.BenjaminHoogterp.com

License

BSD 2 Clause

About

An easy XML File wrapper class for direct queries, including sets on non-existent nodes

Topics

domdocumentjsonphpxmlxml-documentxml-filesxpathxpath-query

Resources

Readme
BSD-2-Clause license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.