2.0.1 • Published 3 years ago

tiny-xml v2.0.1

Weekly downloads
8
License
BSD-3-Clause
Repository
github
Last release
3 years ago

tiny-xml

build status

Tiny XML utility for Client and Server

Example

const xml = require("tiny-xml"),
  serialized = xml.serialize({node: "Hello World!"}),
  valid = xml.valid(serialized),
  obj = valid ? xml.parse(serialized) : {};

console.log(valid); // true
console.log(obj.getElementsByTagName("node")[0].textContent); // Hello World!

API

parse (arg)

Parses the argument and returns a Document.

serialize (arg, key = "xml", wrap = true, top = true)

Serializes the argument as XML.

valid (arg)

Tests if the argument is valid XML.

License

Copyright (c) 2021 Jason Mulligan Licensed under the BSD-3 license

2.0.1

3 years ago

2.0.0

5 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago