@Krush Posted November 7, 2018 Share Posted November 7, 2018 (edited) Hi there! When I load my XML file (with xmlLoadFile) I get an error saying that my file is invalid (Line 4: Error reading end tag.). The file was generated with the built-in MTA XML functions. Am I missing something or is this a bug? File content: <database> <txd></txd> <dff> <551>merit</551> </dff> <col></col> </database> Edited November 7, 2018 by @Krush Link to comment
Moderators IIYAMA Posted November 8, 2018 Moderators Share Posted November 8, 2018 (edited) 9 hours ago, @Krush said: <551>merit</551> Tag can't start with a number. Rule nr.4: http://www.adobepress.com/articles/article.asp?p=1179145&seqNum=4 (There are all 9 rules on that page) Also a XML validator will tell you where an error might be located: https://www.xmlvalidation.com/index.php Last note: Try not to use custom tags based on your data. Pre-sets of tags like col, txd and database are fine. The methods you should use for custom data are: <tag>value</tag> and attributes="..." Edited November 8, 2018 by IIYAMA 2 Link to comment
@Krush Posted November 8, 2018 Author Share Posted November 8, 2018 7 hours ago, IIYAMA said: Tag can't start with a number. Rule nr.4: http://www.adobepress.com/articles/article.asp?p=1179145&seqNum=4 (There are all 9 rules on that page) Also a XML validator will tell you where an error might be located: https://www.xmlvalidation.com/index.php Last note: Try not to use custom tags based on your data. Pre-sets of tags like col, txd and database are fine. The methods you should use for custom data are: <tag>value</tag> and attributes="..." It works now, thanks! 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now