angular-x2js

WebJar for angular-x2js

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-x2js
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-x2js
WebJar for angular-x2js
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/cesarbarone/angular-x2js

Download angular-x2js

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-x2js/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-x2js</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-x2js/
implementation 'org.webjars.bower:angular-x2js:0.2.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-x2js/
implementation ("org.webjars.bower:angular-x2js:0.2.0")
'org.webjars.bower:angular-x2js:jar:0.2.0'
<dependency org="org.webjars.bower" name="angular-x2js" rev="0.2.0">
  <artifact name="angular-x2js" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-x2js', version='0.2.0')
)
libraryDependencies += "org.webjars.bower" % "angular-x2js" % "0.2.0"
[org.webjars.bower/angular-x2js "0.2.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.3.0,1.4)
org.webjars.bower » x2js jar [0,)

Project Modules

There are no modules declared in this project.

angular-x2js  Build Status

A simple wrapper of x2js library

Dependencies

  • required: x2js.js

Install

Inside your project directory, runs:

bower install angular-x2js --save

Includes this lines in your index.html

<script src="bower_components/x2js/xml2json.js"></script>

<script src="bower_components/angular-x2js/src/x2js.js"></script>

Add the module to your angular app:

angular.app('myApp', ['cb.x2js'])

Usage

Inject x2js service where you need:

myApp.controller('MyController', ['$scope', 'x2js', function($scope, x2js) { ... }])

Usage

You can use all functions available in x2js:

x2js.xml2json - Convert XML specified as DOM Object to JSON

x2js.json2xml - Convert JSON to XML DOM Object

x2js.xml_str2json - Convert XML specified as string to JSON

x2js.json2xml_str - Convert JSON to XML string

x2js.asArray - Utility function for working with JSON field always in array form

x2js.asDateTime - Utility function for convert the specified parameter from XML DateTime to JS Date

x2js.asXmlDateTime - Utility function for convert the specified parameter to XML DateTime from JS Date or timestamp

Complete documentation available in:

https://code.google.com/p/x2js/

TODO

Support configs

License

MIT.

Please see the LICENSE file.

Versions

Version
0.2.0