Hi there,
just wondering if someone could help me. Ive written some code in
vb.net to create the following xml.
<menu>
<menuItem>
<text>Political Update</text>
</menuItem>
<subMenu />
<menuItem>
<text>sub categoruy 1</text>
<url>1</url>
</menuItem>
<menuItem>
<text>sub categoruy 2</text>
<url>3</url>
</menuItem>
<menuItem>
<text>sub categoruy 3</text>
<url>4</url>
</menuItem>
</menu>
what i actually want to do is to add the 'subMenu' item into the xml
like the following. im not sure whow to do this as im building my xml
up by looping through a couple of datasets.
<menu>
<menuItem>
<text>Political Update</text>
</menuItem>
<subMenu>
<menuItem>
<text>sub categoruy 1</text>
<url>1</url>
</menuItem>
<menuItem>
<text>sub categoruy 2</text>
<url>3</url>
</menuItem>
<menuItem>
<text>sub categoruy 3</text>
<url>4</url>
</menuItem>
<subMenu />
</menu>
any help appreciated
CG