You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Juan Miguel Cejuela (Created) (JIRA)" <ji...@apache.org> on 2011/12/13 15:23:30 UTC
[jira] [Created] (AXIOM-406) Wrong escaping of special symbols
Wrong escaping of special symbols
---------------------------------
Key: AXIOM-406
URL: https://issues.apache.org/jira/browse/AXIOM-406
Project: Axiom
Issue Type: Bug
Reporter: Juan Miguel Cejuela
Priority: Minor
When I parse a node which is like (test example):
<node>< < > ></node>
toString() returns "<node>< < > ></node>"
getText() returns "< < > >"
Why getText unescapes the special symbols?
Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Commented] (AXIOM-406) Wrong and strange behavior in
escaping special symbols
Posted by "Juan Miguel Cejuela (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIOM-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169259#comment-13169259 ]
Juan Miguel Cejuela commented on AXIOM-406:
-------------------------------------------
Thanks for the quick reply. May I ask why in the serialization the replacement of ">" symbols is optional?
> Wrong and strange behavior in escaping special symbols
> ------------------------------------------------------
>
> Key: AXIOM-406
> URL: https://issues.apache.org/jira/browse/AXIOM-406
> Project: Axiom
> Issue Type: Bug
> Reporter: Juan Miguel Cejuela
> Priority: Minor
> Labels: escape, text, unescape, xml
>
> When I parse a node which is like (test example):
> <node>< < > ></node>
> toString() returns "<node>< < > ></node>"
> getText() returns "< < > >"
> Why getText unescapes the special symbols?
> Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
> Is this correct?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Commented] (AXIOM-406) Wrong and strange behavior in
escaping special symbols
Posted by "Andreas Veithen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIOM-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169267#comment-13169267 ]
Andreas Veithen commented on AXIOM-406:
---------------------------------------
Because of the following production in the XML specs:
CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
> Wrong and strange behavior in escaping special symbols
> ------------------------------------------------------
>
> Key: AXIOM-406
> URL: https://issues.apache.org/jira/browse/AXIOM-406
> Project: Axiom
> Issue Type: Bug
> Reporter: Juan Miguel Cejuela
> Priority: Minor
> Labels: escape, text, unescape, xml
>
> When I parse a node which is like (test example):
> <node>< < > ></node>
> toString() returns "<node>< < > ></node>"
> getText() returns "< < > >"
> Why getText unescapes the special symbols?
> Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
> Is this correct?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Updated] (AXIOM-406) Wrong and strange behavior in escaping
special symbols
Posted by "Juan Miguel Cejuela (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIOM-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan Miguel Cejuela updated AXIOM-406:
--------------------------------------
Description:
When I parse a node which is like (test example):
<node>< < > ></node>
toString() returns "<node>< < > ></node>"
getText() returns "< < > >"
Why getText unescapes the special symbols?
Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
Is this correct?
was:
When I parse a node which is like (test example):
<node>< < > ></node>
toString() returns "<node>< < > ></node>"
getText() returns "< < > >"
Why getText unescapes the special symbols?
Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
> Wrong and strange behavior in escaping special symbols
> ------------------------------------------------------
>
> Key: AXIOM-406
> URL: https://issues.apache.org/jira/browse/AXIOM-406
> Project: Axiom
> Issue Type: Bug
> Reporter: Juan Miguel Cejuela
> Priority: Minor
> Labels: escape, text, unescape, xml
>
> When I parse a node which is like (test example):
> <node>< < > ></node>
> toString() returns "<node>< < > ></node>"
> getText() returns "< < > >"
> Why getText unescapes the special symbols?
> Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
> Is this correct?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Updated] (AXIOM-406) Wrong and strange behavior in escaping
special symbols
Posted by "Juan Miguel Cejuela (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIOM-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan Miguel Cejuela updated AXIOM-406:
--------------------------------------
Summary: Wrong and strange behavior in escaping special symbols (was: Wrong escaping of special symbols)
> Wrong and strange behavior in escaping special symbols
> ------------------------------------------------------
>
> Key: AXIOM-406
> URL: https://issues.apache.org/jira/browse/AXIOM-406
> Project: Axiom
> Issue Type: Bug
> Reporter: Juan Miguel Cejuela
> Priority: Minor
> Labels: escape, text, unescape, xml
>
> When I parse a node which is like (test example):
> <node>< < > ></node>
> toString() returns "<node>< < > ></node>"
> getText() returns "< < > >"
> Why getText unescapes the special symbols?
> Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Resolved] (AXIOM-406) Wrong and strange behavior in
escaping special symbols
Posted by "Andreas Veithen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIOM-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIOM-406.
-----------------------------------
Resolution: Invalid
The document consists of a single element that has a single child which is a text node with value "< < > >". That value is returned by getText(). When the object model for this document is serialized again (which is what toString() does), '<' needs to be replaced by an entity, but replacing '>' is optional. There is nothing wrong or strange here.
> Wrong and strange behavior in escaping special symbols
> ------------------------------------------------------
>
> Key: AXIOM-406
> URL: https://issues.apache.org/jira/browse/AXIOM-406
> Project: Axiom
> Issue Type: Bug
> Reporter: Juan Miguel Cejuela
> Priority: Minor
> Labels: escape, text, unescape, xml
>
> When I parse a node which is like (test example):
> <node>< < > ></node>
> toString() returns "<node>< < > ></node>"
> getText() returns "< < > >"
> Why getText unescapes the special symbols?
> Why toString() unescapes the greater-than symbols and yet leaves < unchanged and < gets converted to < ?
> Is this correct?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org