简体   繁体   中英

Syntax error: Expecting token of type --> SLASH_OPEN <-- but found --> '' <--brs(1008)

I'm new to XML. I'm doing the Roku App with BrightScript and XML. On the top of my XML files, VSCode always warm me as 'Syntax error: Expecting token of type --> SLASH_OPEN <-- but found --> '' <--brs(1008)'. Does anyone know what is that means? THX!

Code is down below.

<?xml version="1.0" encoding="UTF-8"?>

I'm assuming you're using the BrightScript Language extension for vscode?

The error message is definitely a bit obscure, but it's caused by not having a <component> defined in your xml. Once you add a component tag, the error goes away.

在此处输入图像描述

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