Skip to content

Commit

Permalink
Rename to cxsd and spin a part off under previous cxml name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Jan 25, 2016
1 parent a2d6c37 commit 5368426
Show file tree
Hide file tree
Showing 49 changed files with 47 additions and 408 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
cxml
cxsd
====

(Currently incomplete and not operational) streaming XML parser using node-expat (requires node-gyp to compile).

Uses XSD schema information to read XML into nice JavaScript structures.
(Currently incomplete and not operational) streaming XSD parser using node-expat (requires node-gyp to compile).

Downloads schema files and keeps a local cache in the file system.

Expand Down Expand Up @@ -32,11 +30,9 @@ The XSD parser proceeds in stages (the parser and all syntax element classes hav
- `resolve` which resolves references by name and finds out how many times they may appear. Because possible attributes and child elements can be defined through deeply nested references that can point to other namespaces, it's generally impossible to know them all before all references in all namespaces have been resolved.
- TODO: `transform` which renames things to avoid naming conflicts between child elements and attributes (which will be merged into members of a single JSON object) and possibly deals with scope issues for TypeScript definition output.

TODO: after parsing, the resulting data structure should be exportable as JSON or a TypeScript definition file with ambient declarations of the XML namespaces.

License
=======

[The MIT License](https://raw.githubusercontent.com/charto/fast-xml/master/LICENSE)
[The MIT License](https://raw.githubusercontent.com/charto/cxsd/master/LICENSE)

Copyright (c) 2015-2016 BusFaster Ltd
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "cxml",
"name": "cxsd",
"version": "0.0.3",
"description": "(incomplete) fast schema-aware XML parser with XSD support",
"main": "dist/cxml.js",
"bin": {
"cxml": "dist/cli.js"
"cxsd": "dist/cli.js"
},
"scripts": {
"tsc": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Cache} from 'cget';
Expand Down
110 changes: 0 additions & 110 deletions src/cxml.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

export {Namespace} from './schema/Namespace';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/Member.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Namespace} from './Namespace';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/Namespace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import * as path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/NamespaceRef.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Namespace} from './Namespace';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/Type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Namespace} from './Namespace';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/exporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

export {TS} from './exporter/TS';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/exporter/Exporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import * as path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/exporter/JS.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import * as Promise from 'bluebird';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/exporter/TS.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2015-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Cache} from 'cget'
Expand Down
2 changes: 1 addition & 1 deletion src/schema/transform/AddImports.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Type} from '../Type';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/transform/ListImports.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Type} from '../Type';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/transform/Sanitize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import {Type} from '../Type';
Expand Down
2 changes: 1 addition & 1 deletion src/schema/transform/Transform.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd.
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import * as Promise from 'bluebird';
Expand Down
5 changes: 0 additions & 5 deletions src/xml.ts

This file was deleted.

95 changes: 0 additions & 95 deletions src/xml/Namespace.ts

This file was deleted.

Loading

0 comments on commit 5368426

Please sign in to comment.