Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-03-03 11:59:27 -0500
committerCurtis D'Entremont2006-03-03 11:59:27 -0500
commita1334b0681ea79f5b76becdffe1b9ba831681a2c (patch)
treeefee4c384f72dcf33eaf6ae8976ae72ea3e173cc /org.eclipse.help
parent6d26cabc9dc2d0396062b5006958bc2992586023 (diff)
downloadeclipse.platform.ua-a1334b0681ea79f5b76becdffe1b9ba831681a2c.tar.gz
eclipse.platform.ua-a1334b0681ea79f5b76becdffe1b9ba831681a2c.tar.xz
eclipse.platform.ua-a1334b0681ea79f5b76becdffe1b9ba831681a2c.zip
130337 [Help] TOC file parser should ignore unknown elements / attributesv20060303
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileParser.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileParser.java
index ab78f203d..9c301a26c 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileParser.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileParser.java
@@ -145,7 +145,8 @@ class TocFileParser extends DefaultHandler {
*/
public final void endElement(String namespaceURI, String localName,
String qName) throws SAXException {
- if (!qName.equals("filter")) { //$NON-NLS-1$
+ if (qName.equals("toc") || qName.equals("topic") //$NON-NLS-1$ //$NON-NLS-2$
+ || qName.equals("link") || qName.equals("anchor")) { //$NON-NLS-1$ //$NON-NLS-2$
elementStack.pop();
}
}

Back to the top