Skip to content

Commit 964fdfd

Browse files
authored
Align XML_Document and XML_Element APIs more. (#9233)
- Added `to_table` extensions on some core types. - Added ICON to `Any.to`. - Added ICON to `Column.info`, `Table.info`, `DB_Column.info` and `DB_Table.info`. - Added defaults to `Table.cross_tab` and `DB_Table.cross_tab`. - Added `name`, `get`, `at`, `inner_xml` and `outer_xml` to `XML_Document`. - Added constants into left hand side of simple expressions. - Added widget to `get` and `at` on `XML_Document` and `XML_Element`. (Some bug in annotation code with Dmitry) - Altered `get` and `at` to not allow XPath and just get direct child/attribute values. - Added `get_xpath` to `XML_Document`. - Renamed `get_elements_by_tag_name` to `get_descendants_by_tag_name` and added new `get_children_by_tag_name`. - Added `child_names` and `attribute_names` to `XML_Document` and `XML_Element`.
1 parent 55f3820 commit 964fdfd

File tree

11 files changed

+358
-90
lines changed

11 files changed

+358
-90
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@
620620
- [Allow `copy_to` and `move_to` to work between local and S3 files.][9054]
621621
- [Adjusted expression handling and new `Simple_Expression` type.][9128]
622622
- [Allow reading Data Links configured locally or in the Cloud.][9215]
623+
- [Update the XML methods and add more capabilities to document.][9233]
623624

624625
[debug-shortcuts]:
625626
https://github.com/enso-org/enso/blob/develop/app/gui/docs/product/shortcuts.md#debug
@@ -896,6 +897,7 @@
896897
[9054]: https://github.com/enso-org/enso/pull/9054
897898
[9128]: https://github.com/enso-org/enso/pull/9128
898899
[9215]: https://github.com/enso-org/enso/pull/9215
900+
[9233]: https://github.com/enso-org/enso/pull/9233
899901

900902
#### Enso Compiler
901903

distribution/lib/Standard/Base/0.0.0-dev/src/Any.enso

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ from project.Function import const
2121
@Builtin_Type
2222
type Any
2323
## GROUP Conversions
24+
ICON convert
2425
Generic conversion of an arbitrary Enso value to requested type.
2526
Delegates to appropriate `.from` conversion method, if it exists.
2627
If such method doesn't exist, `No_Such_Conversion` panic is raised.

0 commit comments

Comments
 (0)