change parser [message #69973] |
Wed, 18 October 2006 08:53  |
Eclipse User |
|
|
|
Is it possible to change the used parser by configuration? Or do I need
to add my own XMLHelper?
Sven
|
|
|
Re: change parser [message #69993 is a reply to message #69973] |
Wed, 18 October 2006 10:44  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------040605010508020105050703
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Sven,
I'm not sure the context of this question; it seems not XSD related.
XMLLoadImpl has this method for creating the parser which you could
specialize:
protected SAXParser makeParser() throws
ParserConfigurationException, SAXException
{
SAXParserFactory f = SAXParserFactory.newInstance();
return f.newSAXParser();
}
Also, XMLResource.OPTION_PARSER_FEATURES and
XMLResource.OPTION_PARSER_PROPERTIES can be used to pass options to
configure the parser.
Sven Krause wrote:
> Is it possible to change the used parser by configuration? Or do I
> need to add my own XMLHelper?
>
> Sven
--------------040605010508020105050703
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sven,<br>
<br>
I'm not sure the context of this question; it seems not XSD related.
|
|
|
Re: change parser [message #598846 is a reply to message #69973] |
Wed, 18 October 2006 10:44  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040605010508020105050703
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Sven,
I'm not sure the context of this question; it seems not XSD related.
XMLLoadImpl has this method for creating the parser which you could
specialize:
protected SAXParser makeParser() throws
ParserConfigurationException, SAXException
{
SAXParserFactory f = SAXParserFactory.newInstance();
return f.newSAXParser();
}
Also, XMLResource.OPTION_PARSER_FEATURES and
XMLResource.OPTION_PARSER_PROPERTIES can be used to pass options to
configure the parser.
Sven Krause wrote:
> Is it possible to change the used parser by configuration? Or do I
> need to add my own XMLHelper?
>
> Sven
--------------040605010508020105050703
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sven,<br>
<br>
I'm not sure the context of this question; it seems not XSD related.
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds