commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] [Commented] (LANG-869) add randomXMLText
Date Tue, 15 Oct 2013 02:38:42 GMT


Henri Yandell commented on LANG-869:

This feels a little specific. Namely:

Random tag of name random text, containing random number of attributes, each of random text,
and random number of sub tags, each of random subtext. 

Perhaps an example in the Javadoc would be useful. I'm not seeing a good generic feature.


Alternatively the request is for XML safe random text. In that case, running the random text
through xml escape would seem the way to go.

> add randomXMLText
> -----------------
>                 Key: LANG-869
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Jin Kwon
>            Priority: Trivial
>              Labels: random
> Please add some random method for values of XML elements or attributes.
> I tried RandomStringUtils#random() for XML tag values and got
> {{An invalid XML character (Unicode: 0x11) was found in the element content of the document.}}
> #randomAxxx and #randomNxxx may not enough.
> Thanks.

This message was sent by Atlassian JIRA

View raw message