Skip to content

position -1 #14

@jonny64

Description

@jonny64
  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/\"><ns:INVALID>x</ns:INVALID></ns:client>');
    } catch (e) {
      console.log(e.message);
    }
  "

Actual: Unexpected ns:INVALID at line 1, position -1, expected: ns:cl_firstname
Expected: Unexpected ns:INVALID at line 1, position 42, expected: ns:cl_firstname

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions