Skip to content

Implement XMLTOCURSOR() - #2070

Merged
RobertvanderHulst merged 2 commits into
devfrom
feature/vfp-xmltocursor
Aug 27, 2026
Merged

Implement XMLTOCURSOR()#2070
RobertvanderHulst merged 2 commits into
devfrom
feature/vfp-xmltocursor

Conversation

@Irwin1985

Copy link
Copy Markdown
Contributor

Implements XMLTOCURSOR().

The data is always read with XmlReadMode.InferSchema which hands every column over as a string and the inline XSD is read separately with XPath.

@RobertvanderHulst

Copy link
Copy Markdown
Member

A small styling comment: I personally do not like the long list of functions that start with __FoxXml.
I understand that you choose the prefix to group them together.
Our Functions classes are already very full with methods and defines. Since this is an internal implementation I would like to move this to a separate class. I have done something similar for the OOPHelpers class in XSharp.RT.
So I suggest that create an (internal) class FoxXml or something similar and make these all methods of the same class. That way they are grouped together. You can also add the defines as constants to the class.

@Irwin1985

Copy link
Copy Markdown
Contributor Author

Robert, my fault. I remember you told me this before. I'll create a note in my desktop to memorize it because I do use this convention in daily work.

I'll do the refactor ASAP.

@RobertvanderHulst
RobertvanderHulst merged commit d4a60bd into dev Aug 27, 2026
1 check passed
@RobertvanderHulst
RobertvanderHulst deleted the feature/vfp-xmltocursor branch August 27, 2026 18:34
RobertvanderHulst added a commit that referenced this pull request Sep 1, 2026
…2072)

* [Compiler tests] - Adjusted NetCore runtime folder in automated tests runner. Also temporarily disabled C548 from running, to check if this is the culprit in making other tests fail later

* [Compiler tests]- Indeed C548 was one of the culprits, moved it last in the order of runtime tests. Also updated several XSharp runtime dlls for the tests, hopefully this will take care of the remaining problems in running the tests

* [Compiler tests] All automated tests should be now passing both compiling and runtime tests

* Fix SYSMETRIC() by going through GetSystemMetrics() (#2065)

* [VsIntegration] Fix reference resolution: marshal AddPendingReferences onto the UI thread (#2066)

* Add tests for numeric properties in DEFINE CLASS (#2067)

* Add tests for numeric properties in DEFINE CLASS

* Change to usual for late binding

* [VSIntegration] Add WinForms Designer shadow-file bridge for SDK-style projects

Redirects "View Designer" on a SDK-style .prg to an auto-generated
companion C# project instead of the unsupported out-of-process Designer
path, since it has no extensibility point for third-party languages.
Includes commands to sync Designer-added event handlers and general
property/control changes back into the real X# source.

* [VSIntegration] Update comments and Docs

* [VSIntegration] Fix ViewForm routing, auto-detect HasDesigner and its icon

* [VSIntegration] Add auto-sync-on-save, cleanup-on-close, fix reference throttle race.

* Logging Exception with stacktrace and as arror (#2071)

* [VSIntegration] Nest the shadow companion project in a Solution Folder instead of adding it at the same level as the X# project

* Implement XMLTOCURSOR() (#2070)

* Implement XMLTOCURSOR()

* Move the internal functions into an internal class

* [VSIntegration] Fix event-handler caret positioning. Fix old ShadowDesigner references that may persist. Moved all Diagnostics to X# Logging system.

* Prevent double licking on designer.prg from opening the form designer

* Generate comments in InitializeComponent

* [CodedomProvider] Fix handling of System.Single types

* Fix namespaces which are different between .net framework and .net 8

---------

Co-authored-by: cpyrgas <[email protected]>
Co-authored-by: Irwin <[email protected]>
Co-authored-by: Fabrice Foray <[email protected]>
Co-authored-by: Robert van der Hulst <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants