code folding xml file produces unexpected results

code folding xml file produces unexpected results

8

    Apr 05, 2005#1

    I couldn't find where to report this as an issue, so I am putting it here.

    1. Paste this xml into ultraedit:

    Code: Select all

    <connector ret_type='http'>
      <function name='ans_create' id='myans'>
        <parameter name='args'>
          <pair name='a_id' type='integer'></pair>
          <pair name='m_id' type='integer'>1</pair>
          <pair name='summary' type='string'>NEW ANSWER XML - SUMMARY</pair>
          <pair name='keywords' type='string'>NEW ANSWER XML - KEYWORDS</pair>
          <pair name='description' type='string'>NEW ANSWER XML - DESCRIPTION</pair>
          <pair name='solution' type='string'>NEW ANSWER XML - SOLUTION</pair>
          <pair name='status_id' type='integer'>4</pair>
          <pair name='status_type' type='integer'>4</pair>
          <pair name='access_id' type='integer'>1</pair>
          <pair name='lang_id' type='integer'>1</pair>
          <pair name='created' type='time'>1096045800</pair>
          <pair name='publish_on' type='time'>1096045800</pair>
          <pair name='solved_count' type='integer'>0</pair>
          <pair name='notes' type='string'>NEW ANSWER XML -NOTES</pair>
          <pair name='assgn_acct_id' type='integer'>1</pair>
          <pair name='assgn_group_id' type='integer'>1</pair>
          <pair name='last_edited_by' type='integer'>1</pair>
        </parameter>
        <parameter name='flags' type='integer'>0x02</parameter>
      </function>
    </connector>
    2. highlight it as xml
    3. Then try to fold it.

    Notice that the folding does not work as you would expect.

    1
    NewbieNewbie
    1

      Apr 20, 2005#2

      Obviously "parameter" is some special reserved word for Ultraedit, because with other tagnames (e.g. <para>) the folding is as expected.

      351
      Basic UserBasic User
      351

        Apr 20, 2005#3

        Your example works as I'd expect in 11.10. Have you added or edited the Close Fold Strings or Open Fold Strings in the XML block of your wordfile.txt file?