-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 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
44 changes: 44 additions & 0 deletions
44
misc/xml-to-record-converter/src/test/resources/ballerina/sample_38.bal
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,44 @@ | ||
type Book_Title record { | ||
string __text; | ||
string edition; | ||
string format; | ||
string lang; | ||
string pages; | ||
}; | ||
|
||
type Book_Price record { | ||
decimal __text; | ||
string currency; | ||
}; | ||
|
||
type Book_Book record { | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
Book_Title title; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
string author; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
string publisher; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
string publish_date; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
int isbn; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
Book_Price price; | ||
string available; | ||
string id; | ||
string shelf; | ||
}; | ||
|
||
type Books record { | ||
string genre; | ||
@xmldata:Namespace {prefix: "book", uri: "http://example.com/books"} | ||
Book_Book book; | ||
}; | ||
|
||
@xmldata:Name {value: "library"} | ||
type Library record { | ||
Books books; | ||
string established; | ||
string genre; | ||
string location; | ||
}; |