BSD Ports

textproc/p5-XML-XML2JSON 0.06_1 FreeBSD

Convert XML into JSON (and back again) using XML::LibXML

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
textproc, perl5
Package size
12.5 KiB, 29.5 KiB installed

Description

XML::XML2JSON is a Perl module to convert XML to JSON (and JSON to XML) using the following rules from Google (http://code.google.com/apis/gdata/json.html):

Basic:

  • The feed is represented as a JSON object; each nested element or attribute is represented as a name/value property of the object.
  • Attributes are converted to String properties.
  • Child elements are converted to Object properties.
  • Elements that may appear more than once are converted to Array properties.
  • Text values of tags are converted to $t properties.

Namespace:

  • If an element has a namespace alias, the alias and element are concatenated using "$". For example, ns:element becomes ns$element.

XML:

  • XML version and encoding attributes are converted to version and encoding attributes of the root element, respectively.

In the other systems

SystemPortVersion
FreeBSDtextproc/p5-XML-XML2JSON0.06_1
DragonFlytextproc/p5-XML-XML2JSON0.06_1
HardenedBSDtextproc/p5-XML-XML2JSON0.06_1
GhostBSDtextproc/p5-XML-XML2JSON0.06_1

Install

Binary package:

pkg install p5-XML-XML2JSON

From the ports tree:

cd /usr/ports/textproc/p5-XML-XML2JSON/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-XML-XML2JSON>0:textproc/p5-XML-XML2JSON

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.06_10.06_10.06_10.06_10.06_1
FreeBSD:14:quarterly0.06_10.06_1n/a0.06_10.06_1
FreeBSD:15:latest0.06_10.06_1n/a0.06_10.06_1
FreeBSD:15:quarterly0.06_10.06_1n/an/an/a
FreeBSD:16:latest0.06_10.06_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 9
Run dependencies 9
Required by 1

Configuration

Options name: textproc_XML-XML2JSON

OptionDefaultDescription
JSONoffUse JSON
JSON_DWIWoffUse JSON::DWIW
JSON_SYCKonUse JSON::Syck
JSON_XSoffUse JSON::XS
USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/XML/XML2JSON.pm
  • %%PERL5_MAN3%%/XML::XML2JSON.3.gz
distinfo 1
FileSizeSHA256
XML-XML2JSON-0.06.tar.gz24504a4d0d081387533d3b6dff15ee4aebe32534073ef61a6a1cf00f515e1baa3fc7a
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.