XML String Character Limit

Hi,

Anyone has an idea of the character limit of the XML generated string?

I’m currently working on the Modeler and it is up and running.

Thanks,
Jun

What do you mean with character limit? Do you want to limit the length of the XML representation or do you see a lack of chars that can be used?

I think it would help us if you can clarify a bit more in detail what you want to achieve.

No, here is the code that I get in the page:

	function exportDiagram()
	{
		bpmnModeler.saveXML({ format: true }, function(err, xml) {

			if (err)
			{
				return console.error('could not save BPMN 2.0 diagram', err);
			}

			alert('Diagram exported. Check the developer tools!');
			

			console.log('DIAGRAM', xml);
		});
	}

I would like to know the character limit of the xml variable.

Can you please explain what you mean by “character limit”?

If you’re refering to the maximum size (in chars) the variable may have: unbounded, depends on how huge the diagrams are your users are modeling.

1 Like

Yes, I’m referring to the max size of characters of xml variable. I want to know because I’m saving it in the Database. I think that’s all of my questions. Thanks!