Home > other >  Parse error near slash n while running xml file
Parse error near slash n while running xml file

Time:02-12

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>

CodePudding user response:

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

  • Related