Skip to content

Commit 54e4ad4

Browse files
committed
Changed license model
1 parent 5886198 commit 54e4ad4

44 files changed

Lines changed: 1415 additions & 390 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 660 additions & 232 deletions
Large diffs are not rendered by default.

LICENSE-COMMERCIAL

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# TypesXML Commercial License
2+
3+
Copyright (c) 2023-2025 Maxprograms
4+
5+
## Commercial License Terms
6+
7+
This commercial license allows you to use TypesXML in proprietary applications
8+
without the copyleft requirements of the AGPL-3.0 license.
9+
10+
### Permitted Uses
11+
12+
- Use in proprietary software applications
13+
- Distribution as part of commercial products
14+
- SaaS offerings without source code disclosure
15+
- Embedding in closed-source applications
16+
- No requirement to share source code modifications
17+
18+
### Commercial License Includes
19+
20+
- Perpetual license for the licensed version
21+
- Professional technical support
22+
- Access to commercial-only features (when available)
23+
- Legal indemnification coverage
24+
- Service level agreements (SLA)
25+
26+
### License Grant
27+
28+
Subject to the terms and conditions of this license and payment of applicable
29+
license fees, Maxprograms grants you a non-exclusive, non-transferable license
30+
to use TypesXML in your commercial applications.
31+
32+
### Restrictions
33+
34+
- License is non-transferable without written consent
35+
- No sublicensing or redistribution of TypesXML itself
36+
- Must comply with export control laws
37+
- Cannot reverse engineer or create derivative works of the license system
38+
39+
### Support and Updates
40+
41+
Commercial license includes:
42+
43+
- Email support during business hours
44+
- Bug fixes and security updates
45+
- Access to new releases during support period
46+
- Priority support queue
47+
48+
### Termination
49+
50+
This license terminates automatically if you violate any terms. Upon termination,
51+
you must cease all use and destroy all copies of TypesXML.
52+
53+
---
54+
55+
For licensing inquiries and pricing information:
56+
57+
**Email:** <sales@maxprograms.com>
58+
**Website:** <https://maxprograms.com>
59+
60+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66+
SOFTWARE.

LICENSING.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# TypesXML Dual Licensing
2+
3+
TypesXML is available under two licensing options to serve both open source and commercial users:
4+
5+
## 🆓 Open Source License (AGPL-3.0)
6+
7+
TypesXML is licensed under the **GNU Affero General Public License v3.0** for open source use.
8+
9+
### Permitted Uses Under AGPL-3.0
10+
11+
-**Open source projects** (must be AGPL-compatible)
12+
-**Personal and educational use**
13+
-**Internal business tools** (with source sharing requirements)
14+
-**Research and development**
15+
-**SaaS applications** (if you share your application's source code)
16+
17+
### AGPL-3.0 Requirements
18+
19+
When using TypesXML under AGPL-3.0, you must:
20+
21+
- 📝 **Share source code** of any modifications to TypesXML
22+
- 📝 **Share source code** of your entire application
23+
- 📝 **Use AGPL-compatible license** for your project
24+
- 📝 **Provide source access** to all users (including SaaS users)
25+
- 📝 **Include copyright and license notices**
26+
27+
## 💼 Commercial License
28+
29+
For organizations that cannot comply with AGPL-3.0 requirements, we offer commercial licensing.
30+
31+
### When You Need a Commercial License
32+
33+
-**Proprietary software** distribution
34+
-**SaaS applications** without source sharing
35+
-**Commercial products** embedding TypesXML
36+
-**Closed-source applications**
37+
-**Cannot meet AGPL copyleft requirements**
38+
39+
### Commercial License Benefits
40+
41+
-**No source sharing requirements**
42+
-**Proprietary use rights**
43+
-**Commercial redistribution allowed**
44+
-**Professional technical support**
45+
-**Service level agreements (SLA)**
46+
-**Legal protection and indemnification**
47+
-**Priority access to new features**
48+
49+
## License Selection Guide
50+
51+
| Use Case | Recommended License | Cost |
52+
|----------|-------------------|------|
53+
| Open source project (AGPL-compatible) | AGPL-3.0 | Free |
54+
| Personal/educational use | AGPL-3.0 | Free |
55+
| Internal business tool (can share source) | AGPL-3.0 | Free |
56+
| Open source SaaS (can share source) | AGPL-3.0 | Free |
57+
| Proprietary software | Commercial | Paid |
58+
| Closed-source SaaS | Commercial | Paid |
59+
| Commercial redistribution | Commercial | Paid |
60+
| Cannot comply with AGPL | Commercial | Paid |
61+
62+
## Getting Started
63+
64+
### Using Under AGPL-3.0
65+
66+
1. Install TypesXML: `npm install typesxml`
67+
2. Review [AGPL-3.0 requirements](./LICENSE)
68+
3. Ensure your project is AGPL-compatible
69+
4. Include proper attribution and license notices
70+
71+
### Commercial Licensing
72+
73+
1. **Evaluate** TypesXML in your application
74+
2. **Contact us** for licensing discussion
75+
3. **Receive** commercial license agreement
76+
4. **Deploy** with full legal protection
77+
78+
**📞 Commercial Licensing Contact:**
79+
**Email:** [sales@maxprograms.com](mailto:sales@maxprograms.com)
80+
**Website:** [https://maxprograms.com](https://maxprograms.com)
81+
82+
## Frequently Asked Questions
83+
84+
### Q: Can I try TypesXML before purchasing a commercial license?
85+
86+
**A:** Yes! The AGPL-3.0 version includes all features. You can evaluate it fully before deciding on commercial licensing.
87+
88+
### Q: What's the difference between AGPL and commercial versions?
89+
90+
**A:** The code is identical. The difference is in usage rights and obligations.
91+
92+
### Q: Can I use TypesXML in my MIT-licensed project?
93+
94+
**A:** No, AGPL-3.0 is not compatible with MIT. You would need a commercial license.
95+
96+
### Q: What if I'm building an open source SaaS application?
97+
98+
**A:** You can use AGPL-3.0 if you're willing to share your application's source code with your users.
99+
100+
### Q: Do I need a license for each developer?
101+
102+
**A:** Commercial licensing terms vary by deployment and usage. Contact us to discuss your specific needs.
103+
104+
## Legal Information
105+
106+
- **Copyright:** © 2023-2025 Maxprograms
107+
- **Open Source License:** [GNU AGPL-3.0](./LICENSE)
108+
- **Commercial License:** [Commercial Terms](./LICENSE-COMMERCIAL)
109+
- **Trademark:** TypesXML is a trademark of Maxprograms

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
Java library for handling XML in [Maxprograms](https://maxprograms.com) projects.
44

5+
## Licensing
6+
7+
XMLJava is available under **dual licensing** to serve both open source and commercial users:
8+
9+
### 🆓 Open Source License (AGPL-3.0)
10+
11+
XMLJava is licensed under the [**GNU Affero General Public License v3.0**](LICENSE) for open source use.
12+
13+
**Use AGPL-3.0 for:**
14+
15+
- ✅ Open source projects (AGPL-compatible)
16+
- ✅ Personal and educational use
17+
- ✅ Internal business tools (with source sharing requirements)
18+
- ✅ Research and development
19+
20+
### 💼 Commercial License
21+
22+
For organizations that cannot comply with AGPL-3.0 copyleft requirements, [commercial licenses](LICENSE-COMMERCIAL) are available.
23+
24+
**Use Commercial License for:**
25+
26+
- ✅ Proprietary software distribution
27+
- ✅ SaaS applications without source sharing
28+
- ✅ Commercial products embedding XMLJava
29+
- ✅ Closed-source applications
30+
31+
📞 **Commercial Licensing Contact:** [sales@maxprograms.com](mailto:sales@maxprograms.com)
32+
33+
For detailed licensing information, see [LICENSING.md](LICENSING.md).
34+
535
Although standard XML handling in Java is good, this library has features not available in Java SE:
636

737
- Working support for [OASIS XML Catalogs](https://www.oasis-open.org/committees/entity/spec.html)

lib/xmljava.jar

22 KB
Binary file not shown.

src/com/maxprograms/xml/AttlistDecl.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*******************************************************************************
22
* Copyright (c) 2022 - 2025 Maxprograms.
33
*
4-
* This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License 1.0
6-
* which accompanies this distribution, and is available at
7-
* https://www.eclipse.org/org/documents/epl-v10.html
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* Commercial licenses are available at https://maxprograms.com/
818
*
919
* Contributors:
1020
* Maxprograms - initial API and implementation

src/com/maxprograms/xml/Attribute.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*******************************************************************************
22
* Copyright (c) 2022 - 2025 Maxprograms.
33
*
4-
* This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License 1.0
6-
* which accompanies this distribution, and is available at
7-
* https://www.eclipse.org/org/documents/epl-v10.html
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* Commercial licenses are available at https://maxprograms.com/
818
*
919
* Contributors:
1020
* Maxprograms - initial API and implementation

src/com/maxprograms/xml/AttributeDecl.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*******************************************************************************
22
* Copyright (c) 2022 - 2025 Maxprograms.
33
*
4-
* This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License 1.0
6-
* which accompanies this distribution, and is available at
7-
* https://www.eclipse.org/org/documents/epl-v10.html
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* Commercial licenses are available at https://maxprograms.com/
818
*
919
* Contributors:
1020
* Maxprograms - initial API and implementation

src/com/maxprograms/xml/CData.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*******************************************************************************
22
* Copyright (c) 2022 - 2025 Maxprograms.
33
*
4-
* This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License 1.0
6-
* which accompanies this distribution, and is available at
7-
* https://www.eclipse.org/org/documents/epl-v10.html
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* Commercial licenses are available at https://maxprograms.com/
818
*
919
* Contributors:
1020
* Maxprograms - initial API and implementation

src/com/maxprograms/xml/Catalog.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*******************************************************************************
22
* Copyright (c) 2022 - 2025 Maxprograms.
33
*
4-
* This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License 1.0
6-
* which accompanies this distribution, and is available at
7-
* https://www.eclipse.org/org/documents/epl-v10.html
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* Commercial licenses are available at https://maxprograms.com/
818
*
919
* Contributors:
1020
* Maxprograms - initial API and implementation

0 commit comments

Comments
 (0)