2
The current implementation of the Xml datatypes has been fantastic, however it would be more useful for many users I'm sure, especially in regards to EDI functionality, that the XmlDocumentType element be able to be read from a source Xml text object when calling the function XmlDocument.ReadFrom(txtXmlSource, xmlDoc).

A current workaround is possible using Regex to search the source document, however it would be more useful if when reading an XmlDocument from another object the entire contents of the source object were transferred to the XmlDocument datatype object.
For example, given an Xml text document of







the resulting XmlDocument created from XmlDocument.ReadFrom() will look like







and attempting the retrieve the XmlDocumentType element will return an error "The Xml Node is not set"
Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team

Comments

A

Apologies, apparently using xml notation in ideas requires encoding.

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE note SYSTEM "https://someurl.com/note.DTD">
<note>
<someelement someattr=""/>
</note>

becomes

<?xml version="1.0" encoding="utf-8" ?>

<note>
<someelement someattr=""/>
</note>

Category: Development