📄 errata
字号:
29.2 (says pg 15)
-----------------
DOMNode* root = doc.getDocumentElement();
doc is a ptr, right?
pg 18
-----
You switch the object name, attributes to nodes
DOMNamedNodeMap* attributes = price_element->getAttributes();
. . .
int i = . . .;
// A value between 0 and attributes->getLength() - 1
DOMNode* attribute_node = nodes->item(i);
. . .
29.3, pg 25
-----------
You can also set element attributes with the setAttribute function:
^^^^
Did you want that there?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -