| 795 | } |
| 796 | |
| 797 | status_t XMLNode::insertChildAt(const sp<XMLNode>& child, size_t index) |
| 798 | { |
| 799 | if (getType() == TYPE_CDATA) { |
| 800 | SourcePos(mFilename, child->getStartLineNumber()).error("Child to CDATA node."); |
| 801 | return UNKNOWN_ERROR; |
| 802 | } |
| 803 | //printf("Adding child %p to parent %p\n", child.get(), this); |
| 804 | mChildren.insertAt(child, index); |
| 805 | return NO_ERROR; |
| 806 | } |
| 807 | |
| 808 | status_t XMLNode::addAttribute(const String16& ns, const String16& name, |
| 809 | const String16& value) |
no test coverage detected