-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
pos has already advanced past the current token when linePos is called (via next() doing this.pos += length
node -e "
const P = require('./lib/XMLParser'),
X = require('./lib/XMLSchemata'),
Path = require('path');
const xs = new X(Path.join(__dirname, '__data__', 'sequence.xsd'));
try {
new P({xs}).process('<ns:client xmlns:ns=\"http://tempuri.org/\">\n<ns:INVALID>x</ns:INVALID>\n</ns:client>');
} catch (e) {
console.log(e.message);
}
"
Actual: ... at line 2, position 13 (end of ns:INVALID)
Expected: ... at line 2, position 1 (start of ns:INVALID)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels