Re: [xerces2] info about some packaging changes

2002-02-20 Thread Andy Clark
Hasan Al-Sheboul wrote: > So, where are the class implementation (similar to the ones that can be > found with XML4J) can be found (or how to build) into Xerces 2? There are three downloadable packages. Check the following page for info: http://xml.apache.org/xerces2-j/install.html -- Andy

Re: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-20 Thread Andy Clark
"Anthony W. Marino" wrote: > Understood, however, my concern applies to performance and I would believe > that X2 (the next generation) would be more conscious of issues such as this. We'll gladly apply your performance patch... ;) -- Andy Clark * [EMAIL PROTECTED] -

Re: Xerces in J++ (newbie-ish question...please be kind...)

2002-02-20 Thread John Utz
Hello; i wont pick on you, nobody used J++ willingly. :-) i am actually in a somewhat unique position of actually having *helped* M$FT corrupt java on WinCE, tho i dont think that our quasi secret chai vm ever shipped. anyway On Wed, 20 Feb 2002, Dave wrote: > Does anybody have any experie

Re: [Xerces-2] Line/column numbers exception for certain errors

2002-02-20 Thread sandygao
Bug! I have a fix for it. Will put it down soon. Thx. Sandy Gao Software Developer, IBM Canada (1-905) 413-3255 [EMAIL PROTECTED] "Hua Yang"

Xerces in J++ (newbie-ish question...please be kind...)

2002-02-20 Thread Dave
Does anybody have any experience using xerces in J++? (ducks) I'm parsing with InputSources built with StringReaders just fine, but when I hand the parser.parse(InputSource source) method an InputSource contructed with an InputStream or InputStreamReader, the program hangs. I'm trying but haven't

can XMLSerializer create nice formatted output ?

2002-02-20 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
hi all, i am using the XMLSerializer with an OutputFormat object. I do serialize a xml document that has been previously loaded using DOMParser. After altering the xml document, the output, the serializer creates is formatted in a wierd way. Tags that have been deleted show an empty line in the ou

AW: EntityResolver problem

2002-02-20 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
Thanx for the hint. It was not set to true. Now the following features are set: parser.setFeature( "http://xml.org/sax/features/validation";, true ); parser.setFeature( "http://apache.org/xml/features/validation/schema";, true ); Still the EntityResolver is not called, but now the validation is d

Re: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-20 Thread Anthony W. Marino
On Tuesday 19 February 2002 06:04 pm, you wrote: > At 5:35 PM -0500 2/19/02, Anthony W. Marino wrote: > >Is this something that's documented or just your observation of X1 and X2? > > It's fully documented. It is standard SAX behavior. The detailed > implementation is a little strange but well with

Re: EntityResolver problem

2002-02-20 Thread Neeraj Bajaj
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; Version="1.09a"> > > the EntityResolver gets not called and my xml file is not validated. Do i > miss something here? Shouldn't be like that.. :-) can you provide more information ? is Feature http://apache.org/xml/features/va

XML instance validation against XML schema with xerces DOM API

2002-02-20 Thread Nicolas . GOLOUBENKO
I wrote a Java class which implements the DOMErrorHandler interface (Xerces). This class aims at validating an XML instance against an XML schema. The parser used to parse and compare the schema and the XML instance is a DOMASBuilder (Xerces). When the XML instance doesn't fit to the XML schema, a

Re: [xerces2] info about some packaging changes

2002-02-20 Thread Hasan Al-Sheboul
Hi, So, where are the class implementation (similar to the ones that can be found with XML4J) can be found (or how to build) into Xerces 2? Thanks for the help. [EMAIL PROTECTED] wrote: > Hello, > > We considered this approach actually. At least these two things scared us > off: First, th

Re: How to compile and run??

2002-02-20 Thread Hasan Al-Sheboul
Mercy Ponnupandy wrote: > Hi, > I just started project in java and xml. I downloaded > java xml pack. As per the given instructions, I > unpacked and saved the jar files in > \jre\lib\ext (using java 1.3) > I tried out a sample code in the tutorial. It is > giving me compilation errors say

EntityResolver problem

2002-02-20 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
hi all, got a problem with my EntityResolver. It is only called when i refer to a DTD within my xml file: this works fine, my EntityResolver gets called and i get the systemId. however if i want to use a xsd file like this: http://www.w3.org/2001/XMLSchema-instance"; Version="1.09a"> the En

Re: method for introducing escape characters in text

2002-02-20 Thread Neeraj Bajaj
> Is there a (or where is the) method in the xerces implementation that is > used to introduce escape characters in raw text? > > i.e. somewhere in the DOM implementation this string: " m&m " is converted > into " m&m ". Where is the method that does this? Are u trying to serialize the DOM ? org

method for introducing escape characters in text

2002-02-20 Thread Nikolaos Giannadakis
Hello All. Is there a (or where is the) method in the xerces implementation that is used to introduce escape characters in raw text? i.e. somewhere in the DOM implementation this string: " m&m " is converted into " m&m ". Where is the method that does this? thank you for your time, nikolas/

RE: errors while loading and validating a XSL file

2002-02-20 Thread Anderson, John
Title: errors while loading and validating a XSL file You can "sort of" validate your XSL file by running it against a dummy document through Xalan. Xalan doesn't explicitly need the XSLT schema, but should report errors in the XSL.   Caveat: I haven't actually tried this. -Original Me

How to compile and run??

2002-02-20 Thread Mercy Ponnupandy
Hi, I just started project in java and xml. I downloaded java xml pack. As per the given instructions, I unpacked and saved the jar files in \jre\lib\ext (using java 1.3) I tried out a sample code in the tutorial. It is giving me compilation errors saying "cannot resolve symbol" in those pl

Re: validate/parse an XML received, against a XSD which is stored in a Database

2002-02-20 Thread Neeraj Bajaj
> How do i override the "xsi:noNamespaceSchemaLocation=<>" attribute mentioned > in the XML to the XSD string retrieved from the database. You can write an Entity Resolver returning an Input Source object. Create an Input Source object with a character stream, StringReader in your case,

validate/parse an XML received, against a XSD which is stored in a Database

2002-02-20 Thread CHILKUNDA,GANGADHARAIAH N (Non-HP-Cupertino,ex1)
Hi, I need to validate/parse an XML received, against a XSD which is stored in a Database. How do i override the "xsi:noNamespaceSchemaLocation=<>" attribute mentioned in the XML to the XSD string retrieved from the database. Tahnks in adv. Reagrds, Nagendra ---

Re: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-20 Thread Elliotte Rusty Harold
At 5:35 PM -0500 2/19/02, Anthony W. Marino wrote: Is this something that's documented or just your observation of X1 and X2? It's fully documented. It is standard SAX behavior. The detailed implementation is a little strange but well within what the spec allows. -- +---+---

[Xerces-2] Line/column numbers exception for certain errors

2002-02-20 Thread Hua Yang
I used ASBuilder.java to validate personal.xsd. If I remove the first occurrence of the AND , it catches the error and report the line/column numbers. But if I just remove OR alone, it will through exception as follows and not report the correct line/column number correctly. [Fatal Error] :-1:-

Re: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-20 Thread Anthony W. Marino
On Tuesday 19 February 2002 08:19 pm, you wrote: > "Anthony W. Marino" wrote: > > Why does Xerces1 processes differently than Xerces2? > > Because it's implemented differently. > > However, this is clearly a place where the code needs to be > changed to optimize the behavior. There's no reason to r

Re: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-20 Thread Andy Clark
"Anthony W. Marino" wrote: > Why does Xerces1 processes differently than Xerces2? Because it's implemented differently. However, this is clearly a place where the code needs to be changed to optimize the behavior. There's no reason to read the input character by character once the parser scans th

Re: [Xerces-2] Line/column numbers are available for schema errors!!!

2002-02-20 Thread sandygao
The line/col numbers are always for the start tag of element for UPA errors (and other constraints governed by schema-full-checking). You might be expecting the line/col numbers for the particle that violates UPA, but this is difficult to implement, and sometimes not that useful. Difficult: these