com.liferay.portal.service.impl.PortletServiceImpl

'XSD (XML Schema Definition) - XML Validation' tutorial was cited in the source code of the PortletServiceImpl Java class in 2005.

The XSD (XML Schema Definition) - XML Validation tutorial was cited in the source code of the PortletServiceImpl Java class in 2005. Note that my Geocities site has been moved to herongyang.com now.

Subject: com.liferay.portal.service.impl.PortletServiceImpl
Date: 2005
Author: Brian Wing Shun Chan
Source: http://docs.liferay.com/portal/3.5/javadocs/portal-ejb/com
   /liferay/portal/service/impl/PortletServiceImpl.java.html

...
77   * @author  Brian Wing Shun Chan
78   * @version $Revision: 1.8 $
79   *
80   */
81  public class PortletServiceImpl
...
415  private Set _readPortletXML(
416    String servletContextName, String xml, Map portletsPool)
417   throws DocumentException, IOException {
418
419   Set portletIds = new HashSet();
420
421   if (xml == null) {
422    return portletIds;
423   }
424
425   // Crimson cannot do XSD validation. See the following links:
426   //
427   // http://www.geocities.com/herong_yang/jdk/xsd_validation.html
428   // http://www.burnthacker.com/archives/000086.html
429   // http://www.theserverside.com/news/thread.tss?thread_id=22525
430
431   SAXReader reader = null;
432   try {
433    reader = new SAXReader(_SAX_PARSER_IMPL);
434
435    reader.setEntityResolver(new EntityResolver());
436
437    reader.setFeature(_FEATURES_VALIDATION, true);
438    reader.setFeature(_FEATURES_VALIDATION_SCHEMA, true);
439    reader.setFeature(_FEATURES_VALIDATION_SCHEMA_FULL_CHECKING,
        true);
440    reader.setFeature(_FEATURES_DYNAMIC, true);
441   }
442   catch (Exception e) {
443    _log.warn("XSD validation is diasabled");
444
445    reader = new SAXReader();
446   }

Table of Contents

 About This Book

 Reference Citations in 2023

 Reference Citations in 2022

 Reference Citations in 2021

 Reference Citations in 2020

 Reference Citations in 2019

 Reference Citations in 2018

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

Reference Citations in 2005

 Kalkati.net, XML database dump

com.liferay.portal.service.impl.PortletServiceImpl

 Japanese Chinese Tea Web Sites

 AIProject Log

 Converting GB2312 to UTF-8

 "OK" auf chinesisch gesucht

 Insertion Sort

 tanya ttg open file

 Base64Decoder

 SSL Client Authentication

 Softwaretechnik-Praktikum SS 2005

 How to develop a scanner/disinfector

 JSTL break ? possible

 Attacks on Encryption Schemes

 Encoding a C String/Buffer with ASCII Char

 mysql 5alpha stored procedures vs mssql

 Hangul, Chinese characters to Unicode Conversion

 Appunti di Informatica Libera

 Reference Citations in 2004

 Reference Citations in 2003