SV: sorting attributes

2001-11-07 Thread Notion, Endre Furnes
Hi Scott, thks for taking interest.   I'm building a GUI, presenting xml on screen. Its ment to work at all xml objects, not only my own. So it's not my choice, if the file contains attribute, it's displayed.   I could mail you a screen shot, if you like.   Thks and regards   Endre Furnes Not

SV: sorting attributes

2001-11-07 Thread Notion, Endre Furnes
Sorry, I've missed that point. I can use them, anyhow. I use the xerces-2.0.0 beta2 Endre Furnes Notion - Original Message - From: Elena Litani <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 07, 2001 8:28 PM Subject: Re: sorting attributes > > > "Notion, Endre

Re: sorting attributes

2001-11-07 Thread Scott Moore
I'm not sure I follow what you are trying to do, but if order is important, then use instead of attributes.  The XML spec guarantees elements will remain in the same order they are created in.   Scott - Original Message - From: Notion, Endre Furnes To: [EMAIL PROTECTED

Re: sorting attributes

2001-11-07 Thread Elena Litani
"Notion, Endre Furnes" wrote: >The reason why I replaced the parser, was that crimson removed > '\n' and '\t' from the attribute values. (I'll do that myself). > Xerces is fine in both respects. This is really interesting.. What version of Xerces are you using? Xerces conforms to XML 1.0 Att

SV: sorting attributes

2001-11-07 Thread Notion, Endre Furnes
Thks for rapid responce, Scott.   A pitty, though that I can't switch that off. Looking at it, cocoon's build file has sorted attributes, so I'm sure you are right. The thing is, I'm working on a GUI, and I think it matters for clarity that the ex. build file says:  -name, -depends, -if, -un

Re: sorting attributes

2001-11-07 Thread Dennis Sosnoski
If Xerces is *not* removing '\n' and '\t' from attribute values (actually, replacing them with space characters) it has a problem - this is supposed to be done by all XML processors. See XML recommendation section 3.3.3 Attribute-Value Normalization for details. - Dennis Notion, Endre Furnes w

Re: sorting attributes

2001-11-07 Thread Scott Moore
According to the XML standard, attribute order is not guaranteed and is implementation dependent.  So, (and I'm guessing here), I doubt there is a way to turn it off in Xerces.  They probably sort it in order to do a fast binary search lookup by attribute name, so the sorting is a side-effec

sorting attributes

2001-11-07 Thread Notion, Endre Furnes
Hi all. I'm a newbee to xerces. Has just replaced the crimson with xerces, and access it via jaxp interface.   The reason why I replaced the parser, was that crimson removed '\n' and '\t' from the attribute values. (I'll do that myself). Also some annoyment in relative versus absolute dtd poi

SAXParser says it's not validating while underlying XMLReader is

2001-11-07 Thread Taras Tielkes
Hi, It seems that the isValidating() method of the implementation of SAXParser doesn't query the underlying XMLReader instance. The following code: --- SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getX

Re: SAX2 and DTD elements

2001-11-07 Thread Elliotte Rusty Harold
At 1:32 PM +0900 11/7/01, Andy Clark wrote: richard cai wrote: However, I just ran into a case in that the presense of seems to screw up the parsing (to be exact, public void characters(char ch[], int start,int length) seems no longer be able to function.). Any ideas? By any chance is the p

Re: SAX2 and DTD elements

2001-11-07 Thread Andy Clark
richard cai wrote: > However, I just ran into a case in that the presense > of seems to screw up the parsing (to be > exact, public void characters(char ch[], int start,int > length) seems no longer be able to function.). Any > ideas? Any more info? -- Andy Clark * IBM, TRL - Japan * [EMAIL PR

Re: xni

2001-11-07 Thread Andy Clark
rpcee wrote: > Is it correct to extend XMLDocumentParser to build a object model > from an XNI stream, or is there a preferred way. That would certainly work. Do whatever is best for you. Technically, you don't even need to extend the document parser because in Xerces2, the parser configuration

Re: Xerces2-J Beta3 org.w3c xml.sax

2001-11-07 Thread Andy Clark
rpcee wrote: > xerces.jar is uncompressed. Is there a reason not to create a > compressed version? I forget the reason exactly but it has something to do with older Java VMs and/or browsers that cannot load Jars that have been compressed. Leaving it uncompressed allows it to work for everyone rig