1

I'd tried to run this xml file but unfortunately it couldn't be parsed and I always receive the error : config.xml:2: parse error near `\n' .

To be honest, I have no idea how to fix it.

<config control-bind="127.0.0.1:8059" version="1.0">
    <web-server context="/fisheye">
        <http bind="<IP Address>:8060"/>
    </web-server>
    <security allow-anon="true" allow-cru-anon="true"/>
    <repository-defaults>
        <linker/>
        <allow/>
        <tarball enabled="false" maxFileCount="0"/>
        <security allow-anon="true"/>
    </repository-defaults>
</config>

1 Answers1

0

The problem is that you cannot have a < character in an attribute value.

Change

    <http bind="<IP Address>:8060"/>

to

    <http bind="&lt;IP Address>:8060"/>

and then your XML will be well-formed.

See also

kjhughes
  • 106,133
  • 27
  • 181
  • 240
  • I had the same error , I assume that some mistake in the first line but I don't see where it can be – Yevhenii Kuzmenko Feb 11 '22 at 15:59
  • The mistake I showed how to correct is the only mistake preventing your document from being well-formed. Everything else in your XML is well-formed. – kjhughes Feb 11 '22 at 16:00
  • If you're still getting the same error, then you should suspect that either (a) you did not properly apply the fix I suggested or (b) a different document than what you've posted is actually being parsed or (c) [least likely] the program parsing your XML is broken. – kjhughes Feb 11 '22 at 16:14