Re: Trouble parsing HTML4.DTD

2000-02-25 Thread Sandy Walsh
I agree ... consider it done! Knowing when to say "when!" Thanx again, Sandy [EMAIL PROTECTED] wrote: > > "" > > This is just a SWAG, since I don't know SGML, but it looks like SGML must > either support a "include either this or that" type of entity reference > mechanism or a different synt

Re: Trouble parsing HTML4.DTD

2000-02-25 Thread roddey
"" This is just a SWAG, since I don't know SGML, but it looks like SGML must either support a "include either this or that" type of entity reference mechanism or a different syntax for an element declaration?? Otherwise, there is no way that this could produce a legal XML element declaration, w

Re: [Xerces-J] NodeIteratorImpl behavior

2000-02-25 Thread Arnaud Le Hors
The reason for the iterator pointer to be between nodes is robustness. NodeIterators are designed to keep working even under mutations of the document tree being iterated. Having the pointer between nodes allows to specify how it "floats" under the mutations. -- Arnaud Le Hors - IBM Cupertino, XM

[PATCH] DatatypeValidator

2000-02-25 Thread kito_mann
I changed the MAXLENGTH and MINLENGTH constants to all lowercase, as per the 12/17 spec. --- original_src\org\apache\xerces\validators\datatype\DatatypeValidator.java Tue Feb 22 14:54:34 2000 +++ src\org\apache\xerces\validators\datatype\DatatypeValidator.java Wed Feb 23 19:08:50 2000 @@ -83,8 +

[PATCH] StringValidator

2000-02-25 Thread kito_mann
I made a couple of bug fixes and enhancements for the StringValidator (comments below). Even though it's not 100% clear in the spec, I assumed that the "length" facet means that the length is _required_. Please let me know if I submitted this incorrectly, or if I should refrain from the verbose com

RE: "Cut & Paste" From DOM to DOM

2000-02-25 Thread roddey
This should work if the sub-docs are under your control, but would be tricky to do for random XML files (just in case someone was thinking of extended the idea to that level of generality.) A file referenced as an external entity cannot have any internal or external DTD subset, and also must hav

Re: Trouble parsing HTML4.DTD

2000-02-25 Thread Sandy Walsh
Thanx all, Interesting, never dawned on me that it would be SGML, but it makes sense ... I'll look at the XHTML, but ideally I can hack this down to something workable. I did manage to clean up the DTD file but hit the following trouble spot, perhaps you can shed some insight ... ... extra dele

RE: "Cut & Paste" From DOM to DOM

2000-02-25 Thread Bell, David I
Hi Tim O'Donnell wrote that he wanted to "merge" several DOM documents into a single DOM document (see his full message attached below for more detail). One of the things that occurs to me is that if you already have XML files for these documents AND the "root" of those documents is where you want

Re: [Xerces-J] NodeIteratorImpl behavior

2000-02-25 Thread Chih-Hsiang Chou
This behavior is normal and spec-compliant. See the examples at: http://www.w3.org/TR/DOM-Level-2/traversal.html#Iterator-Moving Chih-Hsiang Chou IBM Center for Java Technology - Silicon Valley [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: "Xerces-Dev (E-Mail)" <

Re: [PROPOSAL] new LocatorImpl methods and/or SchemaMessages changes

2000-02-25 Thread Jeffrey Rodriguez
Even tough I see how this can be more useful I hate to think about the performance implications. With the line and column information all we are doing is just reporting the scanner information since we are using the org.apache.xerces.readers.DefaultEntityHandler getLineNumber() and getColumnNumber(

Re: Trouble parsing HTML4.DTD

2000-02-25 Thread Arnaud Le Hors
[EMAIL PROTECTED] wrote: > > The DTD, as you posted it anyway, is pretty much completely dead. Not true. > It > appears as though the > > should have almost certainly been: > > > > In the first form, its definitely not a valid DTD. So did it get munged in > the process of your posting it o

Re: Identity-transformation

2000-02-25 Thread roddey
"By the way: How can you evaluate the correctness of a parser without an identity transformation? If you cannot produce an output that is identical to the input you have to use your own and at least one other parser to check whether this output is correct (unless you manually consult the unicode

Re: Identity-transformation

2000-02-25 Thread Armin Pfarr
> It will might never be possible to reproduce character for character any > arbritrary XML file. This is not the job of an XML parser really, so I > personally feel its unrealistic to expect this to happen. The overhead to > allow it to happen would place a very large burden on the vast majority o

Xerces-perl install

2000-02-25 Thread Damian Burke
Hi , Quick question from a newbie... Does anyone have any tips on installing xerces-perl onto UNIX? makefile changes or anything else? Thanks, Damian

Re: Windows ATL COM Problem

2000-02-25 Thread roddey
I'm not sure what your problem is. Some other folks are using the parser in a COM object, though there are some issues with having the DLL loaded and unloaded all the time. One thing I would definitely suggest is that you first move up to the current code on Apache, which is basically what the 1

Re: [PATCH] BinUrlInputStream.* license nit

2000-02-25 Thread roddey
Actually, we are thinking of renaming the parser "[PRODUCT NAME]" :-) Dean Roddey Software Weenie IBM Center for Java Technology - Silicon Valley [EMAIL PROTECTED] Bill Schindler <[EMAIL PROTECTED]> on 02/25/2000 08:34:22 AM Please respond to [EMAIL

Re: Identity-transformation

2000-02-25 Thread roddey
This is not an answer to your question, but a general purpose rant about what parsers should and should not be required to do... It will might never be possible to reproduce character for character any arbritrary XML file. This is not the job of an XML parser really, so I personally feel its un

Windows ATL COM Problem

2000-02-25 Thread Robert Duff
To Whom it may concern:   I am currently trying to use Xerces-C in an ATL COM ActiveX DLL project. When I make the call to parse an XML file that has been previously validated nothing happens. The document object (DOM_Document) is blank containing no elements. If I feed the parser an invalid

[PROPOSAL] new LocatorImpl methods and/or SchemaMessages changes

2000-02-25 Thread kito_mann
One of the things I need from the schema implementation is details on exactly where an error occurs (over and above the line number). For instance, the message "[Error] :5:66: Incorrect datatype: A is not a boolean." isn't too helpful if I can't access the document via the line number. Basically, w

[PATCH] BinUrlInputStream.* license nit

2000-02-25 Thread Bill Schindler
It must be my day to find nits in documentation. Index: ./c/src/util/NetAccessors/libWWW/BinURLInputStream.cpp === RCS file: /home/cvspublic/xml-xerces/c/src/util/NetAccessors/libWWW/BinURLInputStream.cpp,v retrieving revision 1.1 dif

[Xerces-J] NodeIteratorImpl behavior

2000-02-25 Thread tbensler
The NodeIteratorImpl class implements some strange behavior: when you iterate the nodes using nextNode(), the first call of previousNode() returns the same node as the last nextNode() call did. This unexpected bahavior is only described in the source code and not mentioned in the javadoc document

difference between local and remote execution

2000-02-25 Thread Dirk Eschner
Hi, I am trying to create an xml-Document which has different sections. Each section is generated by a seperate Method, which contains the necessary Element-Object in its Signature. After executing the Method this Element is returned. Please see the code of such a Method public Element getB

Identity-transformation

2000-02-25 Thread Armin Pfarr
Hi, I'm parsing documents with the Xerces DOMParser, modify some nodes and then want to write these document back to disk. At the moment, there doesn't seem to be a working solution for this problem. If you leave out my DOM-processing, the simple question is, whether there is a standard way to par

Re: parse a wml file

2000-02-25 Thread Dirk-Willem van Gulik
Well I've been using xerces to parse WML files. As they are valid XML after all. But if the doc type refers to an external link, the wap dtd, you might want to strip it off, or make it point to a local file. Dw. > Zhang Tao wrote: > > Hello: > >I want to know whether I can use xerces-c p

Re: [PATCH] faq-parse.xml

2000-02-25 Thread Rahul Jain
done. Thank you for reporting. rahul

[PATCH] faq-parse.xml

2000-02-25 Thread Bill Schindler
A minor edit fix to the documentation. (It annoyed me, so I fixed it.) My editor decided to de-tab the file when I made the change, so there's an extra change here. (It generated bunches of diffs on the tab -> space change, but I dumped everything but the area of my actual edit.) Index: faq-parse

Re: Pretty printing of comment nodes

2000-02-25 Thread Assaf Arkin
Wong Kok Wai wrote: > > Xerces 1.0.2: Comments nodes are not printed properly by the serializer > IMHO. The following is the patch I've made for > org.apache.xml.serialize.BaseMarkupSerializer: Not that simple. The serializer will now add a space between the element and comment, which is good for

Re: Serializing a doctype specification

2000-02-25 Thread Assaf Arkin
First, you should create the document with the document type as follows: DOMImplementation impl; impl = new DOMImplemenation(); doc = impl.createDocument( null, "dibob", impl.createDocumentType( "dibob", null, "dibob.dtd" ) ); Second, you should try getting the latest Xerces release from t

RE: XMLSerialize

2000-02-25 Thread Gregory Krasnow
are ya using Xerces-J or Xerces-C? in Xerces-J the class is in org.apache.xml.serialize. - Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2000 5:30 PM To: [EMAIL PROTECTED] Subject: XMLSerialize I just got a message suggesting I c

Re: XMLSerialize

2000-02-25 Thread Assaf Arkin
Make sure you got the Xerces-J 1.0.2 code base and look for org.apache.xml.serialize.XMLSerializer. arkin [EMAIL PROTECTED] wrote: > > I just got a message suggesting I could use the XMLSerialize class to perform > my > necessary file operations. I have no idea where to find this code though.

XMLSerialize

2000-02-25 Thread heather_matthews
I just got a message suggesting I could use the XMLSerialize class to perform my necessary file operations. I have no idea where to find this code though. I downloaded source from the xml.apache.org but found NOTHING with XMLSerialize. Can anyone help me? -Heather Matthews VCD Software Engineer