Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: XML not validating

XML not validating 22 Mar 2013 12:17 #1087

  • PB
  • PB's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,

I have search the forum for an answer to this but have not been successful. I have installed JiFile on a local dev server (IIS 7.5 on Win 7) Joomla 2.5.9 and everything works great. I then installed on the production server and the XML is not validating against the XSD. The 'ifile' element content is not valid. I have tried changing the root-application path from ../ to the physical path on the server but no change.

Here are the System settings... as you can see different than the dev set up.

PHP Built On Linux unixvws3 2.6.9-100.ELsmp #1 SMP Tue Feb 1 12:17:32 EST 2011 i686
Database Version 5.1.61-log
Database Collation utf8_general_ci
PHP Version 5.2.9-20090427
Web Server Zeus/4.3
WebServer to PHP Interface cgi
Joomla! Version Joomla! 2.5.9 Stable [ Ember ] 4-February-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

Any assistance on this would be much appreciated as this is a great extension and I would really like to get it working.

Thank you
Last Edit: 26 Mar 2013 10:38 by Giampaolo.
The administrator has disabled public write access.

XML not validating 22 Mar 2013 16:44 #1088

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi,
you can send us the "IFileConfig.xml" at

This email address is being protected from spambots. You need JavaScript enabled to view it.

for verify your problem?

Thanks
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.

XML not validating 22 Mar 2013 21:13 #1089

  • PB
  • PB's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Ok,

I stripped down the files and discovered this...

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<xs:schema xmlns:xs="www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="ifile">
<xs:complexType>
<xs:all>
<xs:element ref="root-application" />
<xs:element ref="duplicate" minOccurs="0" />
</xs:all>
</xs:complexType>
</xs:element>

<xs:element name="root-application">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value = "[\s]*[\S][\s\S]*"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

<xs:element name="duplicate">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

</xs:schema>

does not validate to this and generates the error....

<?xml version="1.0" encoding="UTF-8" ?>

<ifile>
<root-application>../</root-application>
<duplicate>0</duplicate>
</ifile>

But if I remove the root application references it validates.
Seems like there is something not right with the pattern matching or the regular expression. I don't know.

Does this help?

Thank you
The administrator has disabled public write access.

XML not validating 22 Mar 2013 23:10 #1090

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi Paul,
this check is not mandatory, you can comment the row where the IFile executed the check.
This serves only for validate the file XML but if you not change manually this file (but you use JiFile configuration section), this check in not important.
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.

XML not validating 23 Mar 2013 12:06 #1091

  • PB
  • PB's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I discovered that there were other validating errors on this server but as you suggested I bypassed the validation and everything seems to work now.

Thank you.
The administrator has disabled public write access.