Author Topic: Turning off automatic XML validation  (Read 5859 times)

ekatz

  • Community Member
  • Posts: 6
  • Hero Points: 0
Turning off automatic XML validation
« on: May 10, 2010, 12:04:07 PM »
I am using SlickEdit 15 on Vista
I am unable to prevent SlickEdit from attempting to connect to a site when it opens an xml file.
My macro variable def_xml_no_schema_list has: .xml xsl. xsd
I downloaded a copy of the xsd and pointed to a local location.
My file (pom.xml) starts with:

<project xmlns="<project xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="c:/Users/KatzE/Documents/Downloads/Maven/maven-v4_0_0.xsd">

It tries to connect to http://maven.apache.org/POM/4.0.0
How can I get SlickEdit to completely stop trying to follow URLs
(It can't get through my company's firewall no matter what proxy settings i use)


Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: Turning off automatic XML validation
« Reply #1 on: May 11, 2010, 05:04:59 PM »
Add .ant to your def_xml_no_schema_list variable. My guess is that your maven files are being categorized as Ant build scripts due to the <project> tag at the top of the file.
Take a look at the Document menu, and see if the Select Mode menu item reads "Select Mode (Ant)..."


ekatz

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Turning off automatic XML validation
« Reply #2 on: May 11, 2010, 07:01:56 PM »
Thanks
I added .ant to the def_xml_no_schema_list variable, and it solved the problem.

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Turning off automatic XML validation
« Reply #3 on: November 17, 2013, 01:54:43 PM »
I just encountered this issue too.

I think that SlickEdit code should be modified to perform the XML validation in a background thread, so that the user is not blocked.

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 36
Re: Turning off automatic XML validation
« Reply #4 on: November 18, 2013, 09:47:09 PM »
If you are not editing Ant files, you can also go to Tools > Options > Languages > XML/Text Languages > Ant > Options and turn off the option Identify Ant files on open.  Then your .xml files will not be assumed to be Ant.  You will still need to add .xml to def_xml_no_schema_list.

RaffoPazzo

  • Community Member
  • Posts: 77
  • Hero Points: 2
Re: Turning off automatic XML validation
« Reply #5 on: November 19, 2013, 11:27:21 AM »
Don't know if it works on SE 15, but you should also be able to configure SlickEdit to map the xsd URL to a local one. Then SE will use the local one. In this way you might still get the benefit of XML validation without the pain of the internet connection.

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Turning off automatic XML validation
« Reply #6 on: January 10, 2014, 03:29:30 PM »
If you are not editing Ant files, you can also go to Tools > Options > Languages > XML/Text Languages > Ant > Options and turn off the option Identify Ant files on open.  Then your .xml files will not be assumed to be Ant.  You will still need to add .xml to def_xml_no_schema_list.

Just for future reference, I was required to restart SE after changing def_xml_no_schema_list to '.xml' in order to get rid of the blockage.