CVS: Tapestry/framework/src/net/sf/tapestry/util/xml AbstractDocumentParser.java,1.11.2.3,1.11.2.4
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/util/xml
In directory sc8-pr-cvs1:/tmp/cvs-serv7663/framework/src/net/sf/tapestry/util/xml
Modified Files:
Tag: hship-2-3
AbstractDocumentParser.java
Log Message:
Remove certain checks when a non-validating XML parser is used.
Index: AbstractDocumentParser.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/util/xml/AbstractDocumentParser.java,v
retrieving revision 1.11.2.3
retrieving revision 1.11.2.4
diff -C2 -d -r1.11.2.3 -r1.11.2.4
*** AbstractDocumentParser.java 31 Dec 2002 17:08:42 -0000 1.11.2.3
--- AbstractDocumentParser.java 2 Jan 2003 03:03:24 -0000 1.11.2.4
***************
*** 191,205 ****
Document document = _builder.parse(source);
! // The document parsed and validated, so it must
! // have a <!DOCTYPE>
!
! String publicId = document.getDoctype().getPublicId();
! // Ensure its a known type.
! if (!_entities.containsKey(publicId))
! throw new DocumentParseException(
! Tapestry.getString("AbstractDocumentParser.unknown-public-id", resourceLocation, publicId),
! resourceLocation);
error = false;
--- 191,208 ----
Document document = _builder.parse(source);
! if (getRequireValidatingParser())
! {
! // The document parsed and validated, so it must
! // have a <!DOCTYPE>
! String publicId = document.getDoctype().getPublicId();
! // Ensure its a known type.
!
! if (!_entities.containsKey(publicId))
! throw new DocumentParseException(
! Tapestry.getString("AbstractDocumentParser.unknown-public-id", resourceLocation, publicId),
! resourceLocation);
! }
error = false;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf