Removes the child object at the given index
(int idx)
| 272 | /** Removes the child object at the given index */ |
| 273 | |
| 274 | public void removeChild(int idx) { |
| 275 | children.removeElementAt(idx); |
| 276 | |
| 277 | /*** Modification by HHS - start ***/ |
| 278 | // types.deleteCharAt (index); |
| 279 | /***/ |
| 280 | int n = types.length() - 1; |
| 281 | |
| 282 | for (int i = idx; i < n; i++) |
| 283 | types.setCharAt(i, types.charAt(i + 1)); |
| 284 | |
| 285 | types.setLength(n); |
| 286 | |
| 287 | /*** Modification by HHS - end ***/ |
| 288 | } |
| 289 | |
| 290 | /* returns a valid XML representation of this Element including |
| 291 | attributes and children. |