Skip to content

wynlang/xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml - Official Wyn Package

Simple XML tag extraction. Pure Wyn.

Install

wyn pkg install github.com/wynlang/xml

Usage

import xml

var value = xml.xml_get_tag("<root><name>Alice</name></root>", "name")
print(value)   // Alice

API

Function Description
xml_get_tag(doc, tag) Text inside the first <tag>...</tag>, or ""
xml_get_attr(doc, attr) Value of the first attr="...", or ""
xml_escape(s) Escape &, <, >, " for XML output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors