IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
<html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>Writing Attribute</title><metaname="generator"content="DocBook XSL Stylesheets V1.57.0"><linkrel="home"href="index.html"title="Libxml Tutorial"><linkrel="up"href="index.html"title="Libxml Tutorial"><linkrel="previous"href="ar01s05.html"title="Writing element content"><linkrel="next"href="ar01s07.html"title="Retrieving Attributes"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Writing Attribute</th></tr><tr><tdwidth="20%"align="left"><aaccesskey="p"href="ar01s05.html">Prev</a><EFBFBD></td><thwidth="60%"align="center"><EFBFBD></th><tdwidth="20%"align="right"><EFBFBD><aaccesskey="n"href="ar01s07.html">Next</a></td></tr></table><hr></div><divclass="sect1"lang="en"><divclass="titlepage"><div><h2class="title"style="clear: both"><aname="xmltutorialwritingattribute"></a>Writing Attribute</h2></div></div><p>Writing an attribute is similar to writing text to a new element. In
</p><divclass="calloutlist"><tableborder="0"summary="Callout list"><tr><tdwidth="5%"valign="top"align="left"><ahref="#addreferencenode"><imgsrc="images/callouts/1.png"alt="1"border="0"></a></td><tdvalign="top"align="left"><p>First we add a new node at the location of the current node
pointer, <tt>cur.</tt> using the <ahref="http://xmlsoft.org/html/libxml-tree.html#XMLNEWTEXTCHILD"target="_top">xmlNewTextChild</a> function.</p></td></tr></table></div><p>
previous example in which we added an element with text content.</p></div><divclass="navfooter"><hr><tablewidth="100%"summary="Navigation footer"><tr><tdwidth="40%"align="left"><aaccesskey="p"href="ar01s05.html">Prev</a><EFBFBD></td><tdwidth="20%"align="center"><aaccesskey="u"href="index.html">Up</a></td><tdwidth="40%"align="right"><EFBFBD><aaccesskey="n"href="ar01s07.html">Next</a></td></tr><tr><tdwidth="40%"align="left"valign="top">Writing element content<6E></td><tdwidth="20%"align="center"><aaccesskey="h"href="index.html">Home</a></td><tdwidth="40%"align="right"valign="top"><EFBFBD>Retrieving Attributes</td></tr></table></div></body></html>