简体   繁体   中英

DOMDocument::schemaValidate() exceeds the allowed maximum length of '255'

I used DOMDocument in PHP5 to construct an XML message. After it has been constructed, I call schemaValidate() method against the message, and then run into following error:

PHP Warning: DOMDocument::schemaValidate(): Element 'message': [facet 'maxLength'] The value has a length of '353'; this exceeds the allowed maximum length of '255'.

Is there anyone who ever run into similar question? How to enlarge the maximum length?

Thanks in advance.

How to enlarge the maximum length?

Change the schema.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM