You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Elena Litani <el...@ca.ibm.com> on 2002/08/14 20:19:49 UTC
Survey: setting features and parsing
In order to drive our optimization work on the parser in the right
direction I would like to know what people most usually do: set a bunch
of features and perform several parses as is, or typically change the
features between two parses.
Thank you,
--
Elena Litani / IBM Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Survey: setting features and parsing
Posted by Fabio Riccardi <fa...@xqrl.com>.
set the features once and never change them again.
- Fabio
On Wednesday, Aug 14, 2002, at 11:19 US/Pacific, Elena Litani wrote:
> In order to drive our optimization work on the parser in the right
> direction I would like to know what people most usually do: set a bunch
> of features and perform several parses as is, or typically change the
> features between two parses.
>
> Thank you,
> --
> Elena Litani / IBM Toronto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
RE: Survey: setting features and parsing
Posted by Aleksandar Milanovic <am...@galdosinc.com>.
In our code I've seen both. Changing features is sometimes done for no
reason (the same features are being set again and again - unnecessary but
harmless) and sometimes because there are really different parsing
requirements.
Alex
> -----Original Message-----
> From: Elena Litani [mailto:elitani@ca.ibm.com]
> Sent: Wednesday, August 14, 2002 11:20 AM
> To: xerces-j-dev@xml.apache.org; xerces-j-user@xml.apache.org
> Subject: Survey: setting features and parsing
>
>
> In order to drive our optimization work on the parser in the right
> direction I would like to know what people most usually do: set a bunch
> of features and perform several parses as is, or typically change the
> features between two parses.
>
> Thank you,
> --
> Elena Litani / IBM Toronto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: Help in Validation with schema
Posted by Tom Wang <to...@panscopic.com>.
Ragu,
You'll need to build the full path(a.b.c) yourself. Say if you're using a
SAX parser, you can keep track of the current full path in your
ContentHandler.
Tom Wang
Panscopic Corporation
Report All That You Can Report
http://www.panscopic.com/
> -----Original Message-----
> From: Ragunath Marudhachalam [mailto:rmarudhachalam@circuitvision.com]
> Sent: Wednesday, August 14, 2002 1:28 PM
> To: xerces-j-user@xml.apache.org; tomw@panscopic.com
> Subject: Help in Validation with schema
>
>
> Hi All,
>
> In my application, i need to parse a xml document against a
> schema and give
> back the error messages, if any. So far i'm able to do that.
>
> But when giving back the error message, right now by using sting
> manipulation, i am getting the element name where the error has
> occured. But
> i do need to get the whole hierarchy of that element like, if we
> have a xml
> doc like,
>
> <a>
> <b>
> </c>
> </b>
> </a>
>
> and if i have the error in element 'c',
> i should get the whole hierarchy.. is is possible by any chance??
>
> PS: the element 'c' can be in some other place in the same document.
>
> Thanks for your help and time...
>
>
> Ragu
> CircuitVision
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: Help in Validation with schema
Posted by Maitreyee Pasad <pa...@gst.com>.
Maintain a stack of elements as you navigate them. This will work whether you use a DOM Parser or a stack parser, the code to
maintain the stack will differ though.
Maitreyee
-----Original Message-----
From: Ragunath Marudhachalam [mailto:rmarudhachalam@circuitvision.com]
Sent: Wednesday, August 14, 2002 4:28 PM
To: xerces-j-user@xml.apache.org; tomw@panscopic.com
Subject: Help in Validation with schema
Hi All,
In my application, i need to parse a xml document against a schema and give
back the error messages, if any. So far i'm able to do that.
But when giving back the error message, right now by using sting
manipulation, i am getting the element name where the error has occured. But
i do need to get the whole hierarchy of that element like, if we have a xml
doc like,
<a>
<b>
</c>
</b>
</a>
and if i have the error in element 'c',
i should get the whole hierarchy.. is is possible by any chance??
PS: the element 'c' can be in some other place in the same document.
Thanks for your help and time...
Ragu
CircuitVision
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Help in Validation with schema
Posted by Ragunath Marudhachalam <rm...@circuitvision.com>.
Hi All,
In my application, i need to parse a xml document against a schema and give
back the error messages, if any. So far i'm able to do that.
But when giving back the error message, right now by using sting
manipulation, i am getting the element name where the error has occured. But
i do need to get the whole hierarchy of that element like, if we have a xml
doc like,
<a>
<b>
</c>
</b>
</a>
and if i have the error in element 'c',
i should get the whole hierarchy.. is is possible by any chance??
PS: the element 'c' can be in some other place in the same document.
Thanks for your help and time...
Ragu
CircuitVision
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: Survey: setting features and parsing
Posted by Tom Wang <to...@panscopic.com>.
Same here ...
Tom Wang
Panscopic Corporation
Report All That You Can Report
http://www.panscopic.com/
> -----Original Message-----
> From: Ragunath Marudhachalam [mailto:rmarudhachalam@circuitvision.com]
> Sent: Wednesday, August 14, 2002 11:44 AM
> To: xerces-j-user@xml.apache.org
> Subject: RE: Survey: setting features and parsing
>
>
> Elena,
>
> We do set the features and perform several parses as is.
>
>
> Ragu
> CircuitVision
>
>
>
> -----Original Message-----
> From: Elena Litani [mailto:elitani@ca.ibm.com]
> Sent: Wednesday, August 14, 2002 2:20 PM
> To: xerces-j-dev@xml.apache.org; xerces-j-user@xml.apache.org
> Subject: Survey: setting features and parsing
>
>
> In order to drive our optimization work on the parser in the right
> direction I would like to know what people most usually do: set a bunch
> of features and perform several parses as is, or typically change the
> features between two parses.
>
> Thank you,
> --
> Elena Litani / IBM Toronto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: Survey: setting features and parsing
Posted by Ragunath Marudhachalam <rm...@circuitvision.com>.
Elena,
We do set the features and perform several parses as is.
Ragu
CircuitVision
-----Original Message-----
From: Elena Litani [mailto:elitani@ca.ibm.com]
Sent: Wednesday, August 14, 2002 2:20 PM
To: xerces-j-dev@xml.apache.org; xerces-j-user@xml.apache.org
Subject: Survey: setting features and parsing
In order to drive our optimization work on the parser in the right
direction I would like to know what people most usually do: set a bunch
of features and perform several parses as is, or typically change the
features between two parses.
Thank you,
--
Elena Litani / IBM Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org