{"title":"Codeunit 1203 Import XML File to Data Exch., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1203-import-xml-file-to-data-exch/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":1203,"name":"Import XML File to Data Exch.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1203-import-xml-file-to-data-exch/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1203-import-xml-file-to-data-exch/source/","path":"src/Layers/W1/BaseApp/System/DataExchange/ImportXMLFiletoDataExch.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:6224":{"name":"XML DOM Management","url":"https://jonas-paprotka.de/ref/codeunit/6224-xml-dom-management/"},"table:1227":{"name":"Data Exch. Line Def","url":"https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/"},"table:1221":{"name":"Data Exch. Field","url":"https://jonas-paprotka.de/ref/table/1221-data-exch-field/"},"codeunit:3960":{"name":"Regex","url":"https://jonas-paprotka.de/ref/codeunit/3960-regex/"}},"procs":[{"name":"OnRun","line":12,"kind":"trigger","steps":[[15,"call","UpdateProgressWindow",1],[17,"call","ParseParentChildDocument",1]]},{"name":"ParseParentChildDocument","line":31,"kind":"procedure","access":"local","params":1,"steps":[[52,"ext","codeunit",6224,"LoadXMLDocumentFromInStream",2],[53,"ext","table",1227,"ValidateNamespace",1],[54,"ext","codeunit",6224,"AddNamespaces",2],[57,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[58,"call","EscapeMissingNamespacePrefix",1],[62,"call","IncreaseNodeID",2],[63,"call","ParseParentChildLine",7]]},{"name":"ParseParentChildLine","line":70,"kind":"procedure","access":"local","params":7,"steps":[[84,"ext","table",1221,"InsertRecXMLFieldDefinition",6],[95,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[97,"call","GetRelativePath",2],[103,"call","IncreaseNodeID",2],[106,"event","OnParseParentChildLineOnBeforeInsertColumn",0],[107,"call","InsertColumn",8],[118,"call","IncreaseNodeID",2],[120,"ext","table",1221,"InsertRecXMLFieldWithParentNodeID",7],[130,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[132,"call","GetRelativePath",2],[144,"call","IncreaseNodeID",2]]},{"name":"InsertColumn","line":153,"kind":"procedure","access":"local","params":8,"steps":[[160,"call","UpdateProgressWindow",1],[162,"ext","table",1221,"InsertRecXMLFieldWithParentNodeID",7],[165,"ext","table",1221,"InsertRecXMLFieldWithParentNodeID",7]]},{"name":"GetRelativePath","line":170,"kind":"procedure","access":"local","params":2,"steps":[[174,"call","EscapeMissingNamespacePrefix",1],[174,"ext","codeunit",6224,"GetRelativePath",2]]},{"name":"EscapeMissingNamespacePrefix","line":182,"kind":"procedure","params":1,"steps":[[200,"event","OnBeforeAssignRegexPattern",0],[201,"ext","codeunit",3960,"IsMatch",2]]}]}