Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @prop XMLElement rootEl
- * @prop string name
- * @prop string replaceWith
- */
- function replaceTag(rootEl, name, replaceWith) {
- var elements = rootEl.xmlElements;
- for(var i = 0; i < elements.length; ++i) {
- if(elements[i].markupTag.name === name) {
- elements[i].markupTag = replaceWith;
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment