Skip to content

Issue with XML containing subdeclaration #62

@edi9999

Description

@edi9999
  • Are you running the latest version?
  • Have you include sample input?
  • Have you include actual output?
  • Have you include expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Did you bookmarked the repository for further updates? ;)

Input data

require('fast-xml-parser').validate(`<?xml version="1.0"?><?mso-contentType?><h1></h1>`)

Output data

{ err:
   { code: 'InvalidXml',
     msg: 'XML declaration allowed only at the start of the document.' } }

expected data

true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions