logo       

Document parsing Problem: msg#00007

java.enhydra.kxml

Subject: Document parsing Problem

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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise