我是第一次测试Eclipse,我故意制造了一些小错误,看看Eclipse是如何工作的。但是,它似乎没有采取任何措施......
<?xml version="1.0" encoding="UTF-8"?>
<jobList>
<job status="unallocated">
<resource employeeId="AD145267" type="Laptop">
<model>Vostro 1540</model>
<manufacturer>Dell
<serialNumber>764839211-19-H</seriaNumber>
</manufacturer>
</resource>
<problem reported="2012-01-22T15:23:00">Fails to boot</problem>
</job>
<job status="unallocated">
<resource employeeId="TE135218" type="Wireless printer">
<manufacturer>Epson</manufacturer>
<model>Stylus SX435W</model>
<serialNumber>E4356-982312</serialNumber>
</resurce>
<problem reported="2012-01-23T10:07:00">No wireless access</problem>
</job>
<job status="allotted">
<resource type="Network drive">
<manufacturer>G-Tech</manufacturer>
<model>G-RAID Hard drive array</model>
<serialNumber>783451287G</serialNumber>
</resource>
<problem>Read errors reported during rebuild</problem>
<work jobId="564">
<technician allocated="2012-01-24T15:05:00">T541</technician>
<Note>Spoke to Eric about what happened.</Note>
<nte>Ran phase 1 diagnostics - no errors reported</note>
</work>
</job>
</jobList>
我犯了一些错误,例如笔记和资源但是当我右键点击Eclipse时,选择验证它说验证完成没有错误或警告......我做错了什么?有没有其他方法来测试它?它似乎不是一个检查XML的按钮?
答案 0 :(得分:0)
XML验证以及通过验证框架提供的大多数验证器仅支持位于工作区中并从工作区打开的文件。