[ 
https://issues.apache.org/jira/browse/LANG-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13794808#comment-13794808
 ] 

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: https://issues.apache.org/jira/browse/LANG-869
>             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
(v6.1#6144)

Reply via email to