Skip to content

Namespace validation is not done #265

Open
@edi9999

Description

@edi9999
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Description

Input

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
      <pic:pic>
      </pic:pic>
</w:document>

Code

const fastXmlParser = require("fast-xml-parser");
const result = fastXmlParser.validate(str);
// result is true, but I expect it to be an error object.

Expected behavior

I would expect to see an error telling that the "pic" namespace was not defined in the document.

This is what is shown when using : https://xmlvalidation.com/
Selection_001

Would you like to work on this issue?

  • Yes, if you tell me that you're ok for it to be done and if you help me locate the changes to be done
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-RequestNew features suggested by users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions