microsoft / microsoft/AL

XmlElement.InnerXml is missing setter-function

Open
#6,956 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

xml
Dominant language
PowerShell
Stars
881
Forks
285
Avg merge
3d 36m
Merged PRs (30d)
1

Description

XmlElement.InnerXml is missing a setter-function, and apparently we can only read the value in AL, not set a new value.
Is this by design and is there a an alternative way to set the InnerXml without replacing the whole element?

In C# it exists. https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmlelement.innerxml?view=net-6.0

public override string InnerXml { get; set; }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the AL XmlElement.InnerXml API and compare its available operations with the linked .NET reference, which includes a setter. Determine whether assigning new inner XML without replacing the element is supported or needs a language/API change; completion should establish the expected behavior and its coverage.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.