Skip to content

Does not handle new lines in tags #39

@fineless71

Description

@fineless71

Hi, I'm trying to parse an svg, and I'm getting an error:

xml_parser_error at 10:22: xml_parse_node::tag missmatch
xml_parser_error at 11:0 (is  ): xml_parse_node::child
xml_parser_error at 10:22: xml_parse_document::parsing document failed

From reading other issues, I've tried removing the header, removing comments, replacing spaces, and replacing single tags (/>)

Here's the file:

<svg
   width="210mm"
   height="297mm"
   viewBox="0&#032;0&#032;210&#032;297"
   version="1.1"
   id="svg5"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <defs
     id="defs2"></defs>
  <rect
     style="fill:none;stroke:#000000;stroke-width:10;stroke-linejoin:round;paint-order:stroke&#032;fill&#032;markers"
     id="rect896"
     width="100.21762"
     height="58.545967"
     x="30.625204"
     y="89.954025"></rect>
  <rect
     style="fill:#006aff;stroke:#000000;stroke-width:10;stroke-linejoin:round;paint-order:stroke&#032;fill&#032;markers;fill-opacity:1"
     id="rect898"
     width="68.958168"
     height="53.455563"
     x="83.309692"
     y="224.85725"></rect>
</svg>

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