Olaan Expert Licensed User Longtime User Dec 17, 2014 #1 Hi all, I'm not sure that is bug or not. I'm study Material Design tutorial,I need to add the comment in xml file as attached picture. After I test compile in order to install my device,I have error message. (I use B4A 4.00) Attachments error.png 13.7 KB · Views: 380 addComments.png 14.9 KB · Views: 383
Hi all, I'm not sure that is bug or not. I'm study Material Design tutorial,I need to add the comment in xml file as attached picture. After I test compile in order to install my device,I have error message. (I use B4A 4.00)
Erel B4X founder Staff member Licensed User Longtime User Dec 17, 2014 #2 This is not a bug. The XML is parsed by Android tools.
J James Chamblin Active Member Licensed User Longtime User Dec 17, 2014 #3 The <?XML etc...> needs to be the first thing in the document. The parser cannot know how to properly parse <!Comment> without first knowing what kind of document is being used.
The <?XML etc...> needs to be the first thing in the document. The parser cannot know how to properly parse <!Comment> without first knowing what kind of document is being used.
DonManfred Expert Licensed User Longtime User Dec 18, 2014 #4 Placing the comments this way will work... Code: Copy <?xml version="1.0" encoding="utf-8"?> <!-- This is a comment --> <resources> <!-- This is a comment --> <string name="app_name">B4A DropBox Ex1</string> </resources> Last edited: Dec 25, 2014
Placing the comments this way will work... Code: Copy <?xml version="1.0" encoding="utf-8"?> <!-- This is a comment --> <resources> <!-- This is a comment --> <string name="app_name">B4A DropBox Ex1</string> </resources>
Olaan Expert Licensed User Longtime User Dec 18, 2014 #5 Hi DonManfred, You are correct. Many thanks.