Document parsing Problem

Max Stolyarov <[email protected]> Mon, 31 Mar 2003 13:41:09 -0600
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <3956B7121A30D411850800508B9A5EE0BA1EE4@novarrainet1.internalnt.novarra.com>
Hi,

   I am trying to parse a document using XmlParser and then encode it using
WmlWriter and I have encountered the following problem:

	1. I am unable to partially encode attribute value if it was set to
: http://www.google.com. 

I am expecting that "http://www." and ".com" portions of this string will be
encoded, but they are not. Is this the right expectation? I checked the
Wml.java and see that "http://www." and ".com" strings are both specified
their? What am I doing wrong? Also, I checked javadoc comments for method
setAttrStartTable()

    /** Sets the attribute start Table for a given page.
     *	The first string in the array defines attribute 
     *  5, the second attribute 6 etc.
     *  Currently, only page 0 is supported. Please use the 
     *  character '=' (without quote!) as delimiter 
     *  between the attribute name and the (start of the) value 
     */
    public void setAttrStartTable (int page, String [] attrStartTable) {

and it sayes that I should not use quote in my original xml document to
separate attribute name and value, but if I don't do it then my xml parsing
fails. Please help? Thanks in advance.

Max Stolyarov
NOVARRA
3232 Kennicott Ave
Arlington Heights, Illinois  60004
Phone:  (847) 368-7800 x 252  
Facsimile:  (847) 590-8144