You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/fbaube/gparse

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/fbaube/gparse

v0.0.0-20230421173125-0aaf74eb920c
Source
Go
Version published
Created
Source

gparse

Package gparse processes Golang markup language tokens: initially XML, but with support for other flavors of LwDITA markup RSN (HTML5, Markdown-XP).

Files in this directory use Markdown, so use godoc2md on'em.

This package makes its own versions of Golang XML structures so that they get sensible new names and handy methods.

Two shortened names (Att Attribute, Elm Element) keep code readable.

About XML content, including mixed content

When working with XML we can generally distinguish three types of files:

  • Record-oriented XML data - expressed using XML elements, that contain only other elements
  • Mixed content XML documents - also expressed using XML elements, that can also contain text, not just other elements
  • Validation rules - generally expressed as XSD, RNG, or DTD. It is interesting to note that DTDs actually obey the same fundamental XML syntax rules as the other two types (record-oriented, mixed content); the typical DTD file extensions (.dtd .mod) are helpful to humans but are not strictly required as a signal to a parser that fully understands the syntax of all three XML file types.

That being said, this package can superficially digest many directives (e.g. ELEMENT, ATTLIST, ENTITY) but does not yet (at this level) completely parse them, or act on them (by performing transclusion).

FAQs

Package last updated on 21 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts