The other common error case is where the document is indeed well formed but doesn't contain exactly the elements you expect exactly where you expect them.
其他常见的错误是文档实际上是结构良好的,但是没有在期望的地方包含期望的元素。
Any time we make a corner case into an error we need to carefully specify exactly what the error case is so that we can implement it correctly and test it confidently.
每当我们让一种特殊情况变成一个错误时,我们需要细心辨别出错误情况究竟是什么,这样我们才能正确地执行它,并且自信地测试它。
In this case it says, this is a syntax error, and it's actually highlighting where it came from so I can go back and fix it.
在这个例子中它显示这是个语法错误,并且会高亮显示它的位置,以便于我去修改。
应用推荐