forked from ballerina-platform/module-ballerina-data.xmldata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ballerina-platform#1 from hasithaa/main
Add Input Stream Support
- Loading branch information
Showing
20 changed files
with
1,044 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,4 @@ bin/ | |
|
||
# Ballerina | ||
velocity.log* | ||
*Ballerina.lock | ||
Dependencies.toml | ||
*Ballerina.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
[package] | ||
org = "ballerina" | ||
name = "data" | ||
name = "data.xml" | ||
version = "0.1.0" | ||
authors = ["Ballerina"] | ||
keywords = ["xml", "json"] | ||
repository = "https://github.com/hasithaa/module-ballerina-data" | ||
keywords = ["xml"] | ||
repository = "https://github.com/ballerina-platform/module-ballerina-data.xml" | ||
license = ["Apache-2.0"] | ||
distribution = "2201.5.0" | ||
distribution = "2201.8.1" | ||
export = ["data.xml"] | ||
|
||
[[platform.java11.dependency]] | ||
[[platform.java17.dependency]] | ||
groupId = "io.ballerina.stdlib" | ||
artifactId = "data-native" | ||
version = "0.1.0" | ||
path = "../native/build/libs/data-native-0.1.0-SNAPSHOT.jar" | ||
path = "../native/build/libs/data-xml-native-0.1.0-SNAPSHOT.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# AUTO-GENERATED FILE. DO NOT MODIFY. | ||
|
||
# This file is auto-generated by Ballerina for managing dependency versions. | ||
# It should not be modified by hand. | ||
|
||
[ballerina] | ||
dependencies-toml-version = "2" | ||
distribution-version = "2201.8.1" | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "data.xml" | ||
version = "0.1.0" | ||
dependencies = [ | ||
{org = "ballerina", name = "io"}, | ||
{org = "ballerina", name = "jballerina.java"}, | ||
{org = "ballerina", name = "test"} | ||
] | ||
modules = [ | ||
{org = "ballerina", packageName = "data.xml", moduleName = "data.xml"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "io" | ||
version = "1.5.0" | ||
scope = "testOnly" | ||
dependencies = [ | ||
{org = "ballerina", name = "jballerina.java"}, | ||
{org = "ballerina", name = "lang.value"} | ||
] | ||
modules = [ | ||
{org = "ballerina", packageName = "io", moduleName = "io"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "jballerina.java" | ||
version = "0.0.0" | ||
modules = [ | ||
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "lang.error" | ||
version = "0.0.0" | ||
scope = "testOnly" | ||
dependencies = [ | ||
{org = "ballerina", name = "jballerina.java"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "lang.value" | ||
version = "0.0.0" | ||
scope = "testOnly" | ||
dependencies = [ | ||
{org = "ballerina", name = "jballerina.java"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "test" | ||
version = "0.0.0" | ||
scope = "testOnly" | ||
dependencies = [ | ||
{org = "ballerina", name = "jballerina.java"}, | ||
{org = "ballerina", name = "lang.error"} | ||
] | ||
modules = [ | ||
{org = "ballerina", packageName = "test", moduleName = "test"} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<invoice> | ||
<products xmlns="http://www.example.com/products"> | ||
<product id="1" name="Product 1" xmlns="http://www.example.com/products"> | ||
<description xmlns="http://www.example.com/products">This is the description for | ||
Product 1. | ||
</description> | ||
<price currency="USD" xmlns="http://www.example.com/products">57.70</price> | ||
<category xmlns="http://www.example.com/products">Home and Garden</category> | ||
</product> | ||
<product id="2" name="Product 2" xmlns="http://www.example.com/products"> | ||
<description xmlns="http://www.example.com/products">This is the description for | ||
Product 2. | ||
</description> | ||
<price currency="LKR" xmlns="http://www.example.com/products">6312.36</price> | ||
<category xmlns="http://www.example.com/products">Books</category> | ||
</product> | ||
</products> | ||
<customers xmlns="http://www.example.com/customer"> | ||
<customer id="C001" xmlns="http://www.example.com/customer"> | ||
<name xmlns="http://www.example.com/customer">John Doe</name> | ||
<email xmlns="http://www.example.com/customer">[email protected]</email> | ||
<phone xmlns="http://www.example.com/customer">569-5052</phone> | ||
<address xmlns="http://www.example.com/customer"> | ||
<street xmlns="http://www.example.com/customer">MZ738SI4DV St.</street> | ||
<city xmlns="http://www.example.com/customer">Newport</city> | ||
<state xmlns="http://www.example.com/customer">NY</state> | ||
<zip xmlns="http://www.example.com/customer">19140</zip> | ||
</address> | ||
</customer> | ||
<customer id="C002" xmlns="http://www.example.com/customer"> | ||
<name xmlns="http://www.example.com/customer">Jane Doe</name> | ||
<email xmlns="http://www.example.com/customer">[email protected]</email> | ||
<phone xmlns="http://www.example.com/customer">674-2864</phone> | ||
<address xmlns="http://www.example.com/customer"> | ||
<street xmlns="http://www.example.com/customer">ZI0TGK3BKG St.</street> | ||
<city xmlns="http://www.example.com/customer">Otherville</city> | ||
<state xmlns="http://www.example.com/customer">CA</state> | ||
<zip xmlns="http://www.example.com/customer">77855</zip> | ||
</address> | ||
</customer> | ||
</customers> | ||
</invoice> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<invoice xmlns:prod="http://www.example.com/products" xmlns:cust="http://www.example.com/customer"> | ||
<prod:products> | ||
<prod:product id="1" name="Product 1"> | ||
<prod:description>This is the description for Product 1.</prod:description> | ||
<prod:price currency="USD">57.70</prod:price> | ||
<prod:category>Home and Garden</prod:category> | ||
</prod:product> | ||
<prod:product id="2" name="Product 2"> | ||
<prod:description>This is the description for Product 2.</prod:description> | ||
<prod:price currency="LKR">6312.36</prod:price> | ||
<prod:category>Books</prod:category> | ||
</prod:product> | ||
</prod:products> | ||
<cust:customers> | ||
<cust:customer id="C001"> | ||
<cust:name>John Doe</cust:name> | ||
<cust:email>[email protected]</cust:email> | ||
<cust:phone>569-5052</cust:phone> | ||
<cust:address> | ||
<cust:street>MZ738SI4DV St.</cust:street> | ||
<cust:city>Newport</cust:city> | ||
<cust:state>NY</cust:state> | ||
<cust:zip>19140</cust:zip> | ||
</cust:address> | ||
</cust:customer> | ||
<cust:customer id="C002"> | ||
<cust:name>Jane Doe</cust:name> | ||
<cust:email>[email protected]</cust:email> | ||
<cust:phone>674-2864</cust:phone> | ||
<cust:address> | ||
<cust:street>ZI0TGK3BKG St.</cust:street> | ||
<cust:city>Otherville</cust:city> | ||
<cust:state>CA</cust:state> | ||
<cust:zip>77855</cust:zip> | ||
</cust:address> | ||
</cust:customer> | ||
</cust:customers> | ||
</invoice> |
Oops, something went wrong.