You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/component/parser/xml/BpmnXmlParser.ts
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,10 +68,20 @@ export default class BpmnXmlParser {
68
68
*/
69
69
processEntities: false,
70
70
71
+
// Use Matcher object (jPath: false) to get paths without namespace prefixes via toString('.', false).
72
+
// With jPath: true (default), toString() includes namespace prefixes (e.g. "bpmn:definitions.bpmndi:BPMNDiagram")
73
+
// which don't match our expected paths in nodesWithNumericAttributes.
74
+
jPath: false,
75
+
71
76
// See https://github.com/NaturalIntelligence/fast-xml-parser/blob/v5.5.7/docs/v4%2C%20v5/2.XMLparseOptions.md#attributevalueprocessor
72
-
// jPath Parameter: The third parameter is either a string (when jPath: true, default) or a Matcher instance (when jPath: false).
// The strnum lib used by fast-xml-parser is not able to parse all numbers
76
86
// The only available options are https://github.com/NaturalIntelligence/fast-xml-parser/blob/v4.3.4/docs/v4/2.XMLparseOptions.md#numberparseoptions
77
87
// This is a fix for https://github.com/process-analytics/bpmn-visualization-js/issues/2857
0 commit comments