#1 Fix for escaping reserved XML characters

closed
nobody
None
5
2003-12-15
2003-11-01
Terje Bakken
No

When generating the flat string of the XML Node, it
should escape the reserved XML characters like < > and
&.

This is a patch for Node.java that adds an optimized
method for replacing the reserved characters with their
XML predefined character entities, and modifies output()
and outputAttributes() to use this method.

As a bonus, a typo in the methodname of
outputAttribures() is fixed.

Please apply to cyberlink source.

Terje Bakken
terje at terki dot no

Discussion

  • Terje Bakken
    Terje Bakken
    2003-11-01

    Fix for escaping reserved XML characters v2

     
  • Terje Bakken
    Terje Bakken
    2003-11-01

    Logged In: YES
    user_id=899333

    First version of patch failed to update a second reference to
    the renamed method.

     
  • Satoshi Konno
    Satoshi Konno
    2003-12-15

    Logged In: YES
    user_id=559351

    I find your message yesterday. I am sorry to late X-<
    Your patch about escaping XML chars is good.

    I have checked your patch today, and added your code to
    my latest package.

    I will release the latest package this week. Please wait :-)

     
  • Satoshi Konno
    Satoshi Konno
    2003-12-15

    • status: open --> closed