Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » change parser
change parser [message #69973] Wed, 18 October 2006 08:53 Go to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 64
Registered: July 2009
Member
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:change parser
Next Topic:test
Goto Forum:
  


Current Time: Tue Apr 16 19:54:17 GMT 2024

Powered by FUDForum. Page generated in 0.74207 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top