Bug? Add comment xml file in resouce folder.

Theera

Well-Known Member
Licensed User
Longtime User
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
    error.png
    13.7 KB · Views: 172
  • addComments.png
    addComments.png
    14.9 KB · Views: 147

James Chamblin

Active Member
Licensed User
Longtime User
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
Placing the comments this way will work...
B4X:
<?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:

Theera

Well-Known Member
Licensed User
Longtime User
Hi DonManfred,
You are correct. Many thanks.
 
Top