[xml] empty tags




Hi there,

I'm a first time poster and have been able to pretty much
figure out how to do what i need to do using libxml, but
am having a tough time with creating an empty tag in the
xml packet.

Basically, I need to create a tag like:

<AAA/>

Snipet of source:

xmlNodePtr xmlCurrParentNode
char sName[4] = "AAA";

.
.    Creation of DOM tree Code
.

xmlAddChild(xmlCurrParentNode, xmlNewNode(NULL, BAD_CAST sName));

When I call this, It does not show up in my final XML packet.  Is
this the wrong way to be creating an empty tag?

Any help is appreciated.

Thank You,

David.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]